gta2mis gta2gci gta2mmp Syntax Highlighting for Notepad++
Posted: 26 Aug 2010, 10:48
most of the time i do scripting with notepad++
So yesterday i made a syntax highlighting for .mis files and consider it as a very handy way to work with those usually long and repeating .mis files
You can hide if, while, ... structures and also something that i added: "//{" & "//}" and "//:" that can be used in combination with SUBs which close with RETURN.
This way you can structure the code and only display what you are working right now
EDIT: i added .mmp and .gci file highlighting and some missing keywords to gta2mis
gta2mmp
BLACK: Version1
BLUE: Version2
GREEN: Version3
grey: comment
gta2mis
RED: START BLOCK
ORANGE: END BLOCK
LIGHT RED: META
BLACK: COMMAND
BLUE: DECLARES, CREATES, STORES and TEMPLATES
GREEN: CHECKS
green: numbers
gray: COMMENT
gray with background: MULTILINE COMMENT
gta2gci
GREEN: floats
green: integers
RED: {value}
BLUE: {carname}
grey: comment
//the gci syntax highlighting is a bit buggy because np++ doesn't support keywords with spaces in it
copy userDefineLang.xml to %APPDATA%\Notepad++\
if this doesn't work you can add the content of the file to langs.xml to add it as native language
then you can select gta2mis in the language menu
you could open this mis file for testing(current development version of tiny tiny town - army):
http://test.gta2.square7.net/tyty_army.mis
this contains a complete list of all scripting commands (at least it should). So there might be errors in it. please tell me if you find one.
userDefineLang_orig.xml has more categories for commands but it is not working due to a limitation of n++
So yesterday i made a syntax highlighting for .mis files and consider it as a very handy way to work with those usually long and repeating .mis files
You can hide if, while, ... structures and also something that i added: "//{" & "//}" and "//:" that can be used in combination with SUBs which close with RETURN.
This way you can structure the code and only display what you are working right now
EDIT: i added .mmp and .gci file highlighting and some missing keywords to gta2mis
gta2mmp
BLACK: Version1
BLUE: Version2
GREEN: Version3
grey: comment
gta2mis
RED: START BLOCK
ORANGE: END BLOCK
LIGHT RED: META
BLACK: COMMAND
BLUE: DECLARES, CREATES, STORES and TEMPLATES
GREEN: CHECKS
green: numbers
gray: COMMENT
gray with background: MULTILINE COMMENT
gta2gci
GREEN: floats
green: integers
RED: {value}
BLUE: {carname}
grey: comment
//the gci syntax highlighting is a bit buggy because np++ doesn't support keywords with spaces in it
copy userDefineLang.xml to %APPDATA%\Notepad++\
if this doesn't work you can add the content of the file to langs.xml to add it as native language
then you can select gta2mis in the language menu
you could open this mis file for testing(current development version of tiny tiny town - army):
http://test.gta2.square7.net/tyty_army.mis
this contains a complete list of all scripting commands (at least it should). So there might be errors in it. please tell me if you find one.
userDefineLang_orig.xml has more categories for commands but it is not working due to a limitation of n++