Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config theme and font size [enhancement] #1171

Open
nerun opened this issue May 6, 2024 · 1 comment
Open

Config theme and font size [enhancement] #1171

nerun opened this issue May 6, 2024 · 1 comment

Comments

@nerun
Copy link

nerun commented May 6, 2024

I know that i can change default theme in TFM 2.5.3 by editing line 4168.

lines 4165-9:

<script>
    var editor = ace.edit("editor");
    editor.getSession().setMode( {path:"ace/mode/<?php echo $ext; ?>", inline:true} );
    //editor.setTheme("ace/theme/twilight"); //Dark Theme
    editor.setShowPrintMargin(false); // Hide the vertical ruler

And to change default font size, edit line 4183:

    $themeEl.val( editor.getTheme() );
    $fontSizeEl.val(12).change(); //set default font size in drop down
}

PS.: change default font size do not render in the new size, but always in font 12. If you set to 18, ace will open in 12, but shows 18.

It works well, but would be better if there is a variable to change in config.php for both default theme and font size.

@prasathmani
Copy link
Owner

Thank you, @nerun, for your suggestion. We will take it into consideration for inclusion in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants