Hi
How can I change the font size of the code in Editor 2?
There’s a .css file somewhere but it’s not the best of solutions. Hopefully we’ll have a setting for this in the future. @Erik_Angelin, @Ragnar_Dahlen and @mats.gisselson can tell you more.
Looks like the CSS file is inside of the jar only now and not unpacked?
Regardless the editor updates often so editing the css right now would be too tedious. It would be better to use an external code editor if the current editor isn’t sufficient. It’s been stated the existing code editor will get improvements in the future.
Thanks for the reply.
Yes, the code editor in its current state is weaker than Microsoft Word. Hopefully, improving it is at the top of the TO-DO list for the dev. team.
I’m running a test version of the new code editor and it’s a lot better than the current one. Hopefully we’ll be able to release it to you all soon!
The new code editor does not currently use settings from the .css file, so we need to make the font size a Preference setting.
If you want to experiment with custom .css file hacking, you can copy the “editor.css” file from the jar into a folder named “.defold” in your home directory. We apply css rules from this on top of the bundled “editor.css”, so you can have it contain just your tweaks.
That said, this is all unsupported and likely to break. We often rename things and move stuff around, so your tweaks might stop working or cause weirdness at a future date. Don’t put a lot of effort into re-skinning the editor or anything like that.