CCF Forum


 CCF Forum / News / Inline c4script
Seite 11

Unread Von FounderTyron am 27.03.2014 11:21  
Small new feature for us coders, we've now got inline c4script syntax highlighting using [c4scripti], also datatypes are now correctly highlighted:

int PlaceVegetation2(object objectid, int quantity, array rect, int materialsoil, bool underground, int liquid, bool hanging, array cons, array autorotates)
or
PlaceVegetation2(TRE1, 5, [0,0,100,100], Material("Water"), true);



The old style c4script highlighting still possible via [c4script]

Code:
int PlaceVegetation2(object objectid, int quantity, array rect, int materialsoil, bool underground, int liquid, bool hanging, array cons, array autorotates)


Enjoy~

Disclaimer: The c4script highlighter is a quite simply built (just regexes, no actual tokenizer) and thus will have occasional hiccups. Anybody feeling like building a CodeMirror plugin? ^^


 CCF Forum / News / Inline c4script
Seite 11