jcaillon / 3P

3P (short for Progress Programmers Pal), is a notepad++ plugin designed to help writing progress 4GL (OpenEdge ABL) code. It transforms notepad++ into a full featured IDE for openedge code editor, providing syntax checking, compilation, auto-completion, tool-tips and much more!
https://jcaillon.github.io/3P/
GNU General Public License v3.0
77 stars 35 forks source link

syntax highlighting #41

Closed TestUser013 closed 8 years ago

TestUser013 commented 8 years ago

Hello, How to use own syntax highlighting schema? I can modify user lang OpenEdgeABL , but all my changes had been rolling back after restarting np++ .

jcaillon commented 8 years ago

Hello,

I'm not sure exactly what you intend to do; The way the syntax highlighting works at the moment is : at each start of the plugin, it will try to modify the file : userDefineLang.xml to add a user language called OpenEdgeABL (as of v1.0.0.0 the plugin will crash if it can't access the file in writing!!! You must have the rights to write in this file with your windows user, this will be fixed in v1.1).

If you manually edit the language definition in the userDefineLang.xml it will be erased, because the plugin overwrite the userLanguage with the name OpenEdgeABL at each shutdown of npp.

So at the moment, you are FORCED to use the syntax i defined; but as i see it can be problematic, i will find an alternative solution for the stable release.

Please tell me if i didn't understand your question right.

and make sure userDefineLang.xml is accessible (Right click on file > Security > Check what's needed to allow total control to current user) or you won't even be able to load the plugin! :)

TestUser013 commented 8 years ago

Thanks for the quick response. You understand my question correctly. I want be able to edit standard color scheme :)

And I think, you should add in to folding code 2 style "DO FOR" and "EDITING" keywords.

For examle bloks editing:end and do for:end shoud be able to folding: _prompt-for {..........} editing: {..........} {..........} end. {..........} do for buffername: {..........} end.

ps: your plugin is the best of the best, thank you! :)

jcaillon commented 8 years ago

Thank you very much for the support, i appreciate it! I'm glad this can be useful to you :)

I will make sure to add an option to not overwrite the User Defined Language at each shutdown so you can modify it as you wish (this modification will come with release v1.1).

Also note that using a UDL is only a temporary solution, i'm working toward a custom lexer inside the plugin, but as it is not a priority i don't know when i'll implement it!

Thanks for the EDITING keyword, i never used it so i missed it, i added it to the UDL so you can fold the code! As for the DO FOR BUFFER, it already work with the UDL i defined :

image

I'm closing the issue, see you in v1.1.0! ^^

jcaillon commented 8 years ago

FYI,

The behavior in v1.1.0 will be : Install UDL if it doesn't exist in the userdefinedlang.xml, Update it only when 3P updates and only if the option is set :

image

That way you can modify to whatever you like. I'm curious tho, what modifications do you want to make? :)

TestUser013 commented 8 years ago

I just wanted use colors and font from other colors scheme. It`s color scheme (dark) created by J-Fobos http://rghost.ru/8wjXxHxqx and I like to use this scheme. If you want, you can include this scheme in to your plugin, J-Fobos will not mind.

This color scheme based on https://github.com/ccleaud/ProgressABL-for-Notepad-plusplus

jcaillon commented 8 years ago

Ok! I already have everything needed to create new themes for the application and syntax highlighting, ill make sure to include this theme asap ^^

This guy's name ccleaud sounds familiar ;P

ccleaud commented 8 years ago

^^