This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Greetings!
Posting the thread here, because I couldn't find a more appropriate forum for it.
I tend to use NPP for writing scripts, and now that task includes Minecraft function files.
Since NPP allows user to define their own syntax highlighting rules, I though I'd make a set for .mcfunction files.
You can find an instruction on how to import a new syntax here.
The file itself is under the spoiler (since forums disallow attaching arbitrary files).
Feedback from fellow NPP users would be appreciated.
<NotepadPlus> <UserLang name="Minecraft Function File" ext="mcfunction" udlVersion="2.1"> <Settings> <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" /> <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> </Settings> <KeywordLists> <Keywords name="Comments">00# 01 02((EOL)) 03 04</Keywords> <Keywords name="Numbers, prefix1"></Keywords> <Keywords name="Numbers, prefix2"></Keywords> <Keywords name="Numbers, extras1"></Keywords> <Keywords name="Numbers, extras2"></Keywords> <Keywords name="Numbers, suffix1">s b l f d</Keywords> <Keywords name="Numbers, suffix2"></Keywords> <Keywords name="Numbers, range"></Keywords> <Keywords name="Operators1">~ += -= *= /= %= + - = : , /</Keywords> <Keywords name="Operators2"></Keywords> <Keywords name="Folders in code1, open"></Keywords> <Keywords name="Folders in code1, middle"></Keywords> <Keywords name="Folders in code1, close"></Keywords> <Keywords name="Folders in code2, open"></Keywords> <Keywords name="Folders in code2, middle"></Keywords> <Keywords name="Folders in code2, close"></Keywords> <Keywords name="Folders in comment, open"></Keywords> <Keywords name="Folders in comment, middle"></Keywords> <Keywords name="Folders in comment, close"></Keywords> <Keywords name="Keywords1">advancement ban blockdata clear clone debug defaultgamemode deop difficulty effect enchant entitydata execute fill function gamemode gamerule give help kick kill list locate me op pardon particle playsound publsih recipe reload replaceitem save save-off save-on say scoreboard seed setblock setidletimeout setmaxplayers setworldspawn spawnpoint spreadplayers stats stop stopsound summon teleport tell tellraw testfor testforblock testforblocks tickingarea time title toggledownfall tp transferserver trigger weather whitelist worldborder wsserver xp</Keywords> <Keywords name="Keywords2">objectives players stats add remove list set operation detect entity if unless</Keywords> <Keywords name="Keywords3">x y z r rm tag team c l lm m name rx rxm ry rym type @a @e @p @r @s</Keywords> <Keywords name="Keywords4"></Keywords> <Keywords name="Keywords5"></Keywords> <Keywords name="Keywords6"></Keywords> <Keywords name="Keywords7"></Keywords> <Keywords name="Keywords8"></Keywords> <Keywords name="Delimiters">00" 01\ 02" 03[ 04 05] 06{ 07 08} 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords> </KeywordLists> <Styles> <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="2" nesting="0" /> <WordsStyle name="NUMBERS" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS1" fgColor="0000A0" bgColor="FFFFFF" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS2" fgColor="0000A0" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS3" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" fontStyle="2" nesting="0" /> <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="83898375" /> <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="83886087" /> <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" /> </Styles> </UserLang> </NotepadPlus>
P.S.: if there is a more appropriate forum to post this, I'd appreciate being pointed there.
Can you give an example of such lines? I set the comments to only register at the beginning of the line (ignoring whitespace).
Thanks! I plan to give this one an aggressive workout once we can test datapacks in snapshots.
SOOOOOO much thank you!
Greetings!
Posting the thread here, because I couldn't find a more appropriate forum for it.
I tend to use NPP for writing scripts, and now that task includes Minecraft function files.
Since NPP allows user to define their own syntax highlighting rules, I though I'd make a set for .mcfunction files.
You can find an instruction on how to import a new syntax here.
The file itself is under the spoiler (since forums disallow attaching arbitrary files).
Feedback from fellow NPP users would be appreciated.
P.S.: if there is a more appropriate forum to post this, I'd appreciate being pointed there.
Can you give an example of such lines? I set the comments to only register at the beginning of the line (ignoring whitespace).
Thanks! I plan to give this one an aggressive workout once we can test datapacks in snapshots.
SOOOOOO much thank you!