Open ramagottfried opened 1 year ago
also, if I close the text editor, and then reopen it again, the highlighting disappears until I hit cmd-s again.
I would also be interested in custom syntax highlighting for the textedit and code editor widgets. I have a python external which would greatly benefit from this.
I have an object I am working on that works with lua files, and I notice that when I open the file in the text editor, the filename and title are set with the .lua extension, but text is all grey --
but then if I save the file, the syntax highlighting is automatically enabled, which is really useful.
Is there a filetype attribute or object_method I can call so that the "jed" object knows to use syntax highlighting when the file is first opened?
Here is my dbclick function: