PDA

View Full Version : ZScript Language File for Notepad++



Tamamo
01-21-2015, 01:57 PM
Get it here (https://www.dropbox.com/s/q3k93h1aehajefi/zscript.xml?dl=0).

Goriya
01-21-2015, 02:08 PM
Topic stickied for ease of access.

SUCCESSOR
01-21-2015, 07:00 PM
Needs keywords "break" and "continue"

This is cool. I have been using the ZScript plugin for RText though.

Tamamo
01-21-2015, 09:58 PM
No problem Chummer. :)

ZoriaRPG
05-25-2015, 01:40 AM
My similar SciTE config files (http://zoriarpg.com/zc/SciTE_ZScript_cpp.properties), for those of you using SciTE.

I think we both have questionable keywords.

Tamamo
09-09-2015, 02:44 PM
Fixed

DarkDragon
11-28-2016, 02:54 AM
The original link unfortunately 404s.

Gleeok
11-28-2016, 04:25 AM
There's also this one: https://drive.google.com/file/d/0BxB7q45aSO-2eWNyTk9xNFdGd00/view?usp=sharing
Haven't used either of them though, so I can't comment on completeness or up to date-ness of it all.

Three years or so ago I changed "zscript.txt" to java/c++ style comments so it could be parsed more easily. There was even some doxygen files at one point. What I ended up using after this was Visual Studio with Visual Assist for auto-complete/syntax highlighting, which also nicely preserves the comments/documentation as well. IIRC you only have to change the file extension and about 8 lines or so to get it working. Not very lightweight for normal users, but easy if you already have these tools installed.

I also wrote a zscript preprocessor a while back which is kind of neat: http://armageddongames.net/showthread.php?93854-ZScript-Preprocessor [edit]Crap, this link is also broken. D:

And here's a neat editor written in java with zscript language built-in: http://www.purezc.net/forums/index.php?showtopic=55636
(Disclaimer: Haven't used this one due to my severe java allergy)

ZoriaRPG
11-28-2016, 11:51 AM
I've since updated the Sci|TE config as well, so I may as well post that:

http://pastebin.com/p5W43eN7

Covers nearly all ZScript syntax, but not the std.zh functions. I intentionally omitted Item and Script, so that only the lowercase item and script would be caught as tokens, and highlighted.

I've considered shoving all the std.zh functions into the directives section, so that they can have unique highlighting styles.

I didn't do any preprocessor defs though. I'm kicking meself for not noticing Gleeok's preprocessor in the past. if I ever grabbed that, the memory of it has since fallen out of me ears.

Shadowblitz16
12-27-2016, 03:27 PM
@Temamo can you rehost the file?
the link is broken.

ZoriaRPG
05-30-2017, 11:24 AM
The original link is broken. I updated and mirrored the NotePad++ file, to use the complete ZScript syntax.

ZScript Syntax for Notepad++ (http://timelord.insomnia247.nl/zc/zc_dev/NotepadPlusPlus/)

ZScript Syntax for SciTE (http://timelord.insomnia247.nl/zc/zc_dev/SciTE)