Forum: Cfengine Help Subject: CFengine syntax highlighting using Fraise Author: matter Link to topic: https://cfengine.com/forum/read.php?3,18251,18251#msg-18251
Greetings, Below is syntax highlighting using Fraise (Mac OS X editor). Save the text below as /Applications/Fraise/Contents/Resources/Syntax Definitions/cfengine.plist. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> beginCommand ` endCommand ยด beginInstruction endInstruction beginVariable $@ endVariable (){}=;:[] firstString " secondString ' firstSingleLineComment # secondSingleLineComment beginFirstMultiLineComment endFirstMultiLineComment beginSecondMultiLineComment endSecondMultiLineComment functionDefinition ^\s*(body|bundle)\s+.*\n?\s*\{ removeFromFunction function keywordsCaseSensitive recolourKeywordIfAlreadyColoured keywords int real slist ilist rlist policy string or and xor dist expression not autocompleteWords Also, add to /Application/Fraise/Contents/Resources/SynDefinitions.plist name CFengine file cfengine extensions cf3 cf _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine