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 » Tue Apr 07, 2015 10:25 am

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 44 times
Last edited by blckfire on Thu Aug 18, 2016 1:10 pm, edited 3 times in total.

xeon
Forum Regular
Posts: 329
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy
Contact:

Re: Notepad++ Syntax Highlighting

Post by xeon » Wed Apr 08, 2015 12:09 am

Thanks for sharing!
Scripter Xeon | Zulu Hotel Italia 7th Age | www.zhi.it
Image

Yoda
New User
Posts: 23
Joined: Tue Sep 04, 2007 12:41 am

Re: Notepad++ Syntax Highlighting

Post by Yoda » Thu Apr 09, 2015 3:37 pm

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 » Thu Jan 21, 2016 3:06 pm

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 49 times

User avatar
atreiu
Grandmaster Poster
Posts: 125
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow
Contact:

Re: Notepad++ Syntax Highlighting

Post by atreiu » Sat Dec 02, 2017 5:11 am

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
thanks a lot to all POL devs you've made my hobby!
my addon for comfortable eScript compilation will save your time
drugs&drop for compile new one
alt+q - compile last script

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest