griddycode icon indicating copy to clipboard operation
griddycode copied to clipboard

Give language scripts more customization of the CodeEdit node

Open RealPacket opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I think that in languages like Lua where they don't use braces for starting and ending blocks, it would be benefit us if we were able to change certain things like:

Describe the solution you'd like Allow more access of the CodeEdit node. For example, we'd have a global called editor and we could change some properties. However, I think some properties shouldn't be accessible, such as the theme properties, they should only be accessible to theme scripts. I think I might be able to contribute some of this.

RealPacket avatar Mar 27 '24 01:03 RealPacket

To add to this, editor.disable_everything() should exist for stuff that doesn't need highlighting, autocomplete, etc.

Example: .txt files should not have any highlighting, so therefore txt.lua should be just editor.disable_everything()

face-hh avatar Mar 29 '24 18:03 face-hh

You can also just make it so if no lua file is present it doesn't do default highlights.

Symmettry avatar Mar 31 '24 20:03 Symmettry