Plotscript formatting in Notepad++

Talk about things that are not making games here. But you should also make games!

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6461
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Plotscript formatting in Notepad++

Post by Spoonweaver »

Has anyone else here customized notepad to display the plotscripting language differently?
If so what have you done that you find helpful.

Attached is an example of what mine looks like.

I color in everything within parentheses so I know when they stop and end correctly. Very helpful when you have multiple layers nesting within each other and you get the, "your script may have an additional ( or begin" error message.
I also set up #--V and #--^ to act as folding. I was originally going to set up script/plotscript as the folding code, but I couldn't use the keyword end because it gets used elsewhere.I also just find it much cleaner to have the folding element complete separated out.

Other than that I've just highlighted certain keywords I try to keep track of.

I exported the notepad++ file here if you'd like to give it a look.
https://spoonweaver.000webhostapp.com/plotscript.xml
right click, save as
File does assume you've changed your notepad++ background to black.
Attachments
script theme.png
script theme.png (9.31 KiB) Viewed 1653 times
Last edited by Spoonweaver on Fri Jan 19, 2018 2:29 am, edited 1 time in total.
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Ichiro and Newbie had created definition files for Notepad++ as well. I'm not a Notepad++ user, but I tried to combine their files and put it on the wiki:
http://rpg.hamsterrepublic.com/ohrrpgce ... rspeak.zip
IIRC, the code folding uses begin/end, maybe also (/), but I think it didn't always work properly.
Feel free to link to your definition file from http://rpg.hamsterrepublic.com/ohrrpgce ... ting_Tools as an alternative or upload it to the wiki.

I use emacs, and have started writing an emacs mode for HS, but haven't gotten very far yet. It doesn't offer much beyond syntax highlighting.
Last edited by TMC on Fri Jan 19, 2018 4:29 am, edited 1 time in total.
KutKu
Red Slime
Posts: 31
Joined: Sun Jan 01, 2017 11:17 pm

Post by KutKu »

All I've done is make the text white and edited a few colors.

How involved is it to set up stuff like this in notepad++? Is it 1, 2 drag and drop? Or download this extension, create this, set this up, 1, 2, 3, 4, 5?
User avatar
guo
Metal Slime
Posts: 749
Joined: Fri Dec 04, 2009 9:12 pm

Post by guo »

:o I just use leafpad in ubuntu, but this looks next level. Sometimes a missing (or extra) parentheses is all that stands between relaxed scripting and head scratching, sweaty, stressful frustration.
vvight.wordpress.com
Post Reply