pkulchenko / ZeroBranePackage

Packages for ZeroBrane Studio (https://studio.zerobrane.com)
MIT License
246 stars 148 forks source link

added property and function call highlighting #78

Open daviel opened 5 years ago

daviel commented 5 years ago

Hello,

I made these two plugins to add additional highlighting to ZeroBrane. I was used to the quite good highlighting in atom and wanted to have something similiar for ZeroBrane. It improves the readibility of code a lot and is a must-have eyecandy in my opinion.

-- The color can be set in the user.lua or system.lua like so:
highlightfunctioncalls = {indicator = wxstc.wxSTC_INDIC_TEXTFORE, color = styles.colors.Blue}
-- and
highlightproperties = {indicator = wxstc.wxSTC_INDIC_TEXTFORE, color = styles.colors.Red}

Here an example of how it looks in atom for javascript: atom

And here how it looks in ZeroBrane after activating the plugins: zerobrane

And here before activation of the plugins: zerobranebefore

Also I have to mention that the quality of this two plugins is rather bad as I am not used to this kind of regex maybe someone can help me out with this. Also there are some things that need additional fixing like highlighting in comments and some more. So take this more as a proof of concept and whether there is someone interested in this.

I would appreciate every feedback on this. Thanks! :+1:

daviel commented 4 years ago

Any update on this?