Notepad++ Syntax Highlighting

This is where you can post about tools related specifically to the POL Server itself

Moderator: POL Developer

Post Reply
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Notepad++ Syntax Highlighting

Post by blckfire »

Here is my UDL file for Notepad++ for all of you that use this tool, or want to use this tool but are too lazy to do this work yourselves :P

INSTALL PROCESS:

In Notepad++ you need to go to Language->User Defined Language->Import...
Then you search for the xml file and it will say that you successfully imported the language.
After that pick POLScript language from the dropdown menu at the top and you should be ready to go.

NOTES:
My syntax highlighting is based on the Obsidian theme in Notepad++. You should pick that theme up from the Settings->Style Configurator before you use this highlighting.

Good thing about Notepad++ is that it is totally free.

Hope you like it and let me know if you need any help setting it up.

Update: 09/04/2015:
- Just updated it to color all operators. The operators '<=' and '>=', and some others were not being correctly colored.

Updated 18/08/2016:
- Added the possibility to fold/unfold functions and keywords like: "if", "for", etc...

Code: Select all

Folded code:

[+]program blahblah
[+]function xx

Unfolded function xx with folded if statements:

[-]function xx
[+]if (something)
[-]if (somethingelse)
code...
endif
endfunction
- Added the possibility to create Regions of code by using:

Code: Select all

 //Region name_of_region
 code...
 //EndRegion
 
Attachments
POLScriptNPP.rar
(6.35 KiB) Downloaded 346 times
Last edited by blckfire on Thu Aug 18, 2016 1:10 pm, edited 3 times in total.
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

Re: Notepad++ Syntax Highlighting

Post by xeon »

Thanks for sharing!
Yoda
New User
Posts: 23
Joined: Tue Sep 04, 2007 12:41 am

Re: Notepad++ Syntax Highlighting

Post by Yoda »

Thank you for sharing!
User avatar
timginter
Neophyte Poster
Posts: 37
Joined: Tue Apr 22, 2008 6:25 am

Re: Notepad++ Syntax Highlighting

Post by timginter »

Thanks for sharing!

Based on your template I made one for "Solarized" theme (dark) with highlighting loosely based on PowerShell, maybe someone will find it useful
Attachments
POLeScript_NPP_Solarized.zip
(6.38 KiB) Downloaded 327 times
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: Notepad++ Syntax Highlighting

Post by atreiu »

i use this notepad++ autocomplite https://pastebin.com/p3yHhDLX many years and improve it from time to time but it's not perfect and maybe your is better, i'll try
Post Reply