# Insert as many items as you want, separate them with a " ". (Folder paths will differ on Windows and OSX.)Ĭode: Select all # Filetype extension configuration file for Geany Note that this file has a higher priority than the default one in "/usr/share/geany" and is by default deactivated, with all filetypes commented out. "Nasal" must start with a capital "N"!Ĥ) Replace the content of "~/.config/geany/filetype_nf" with the one below.Īll I did was add an entry for Nasal to the default list of filetypes in the "" section and add Nasal to the "Script=" line in the "" section. # 0 is spaces, 1 is tabs, 2 is tab & spacesģ) Rename the text file to "". # context action command (please see Geany's main documentation for details) # This setting works only for single line comments setting to true causes the following on pressing CTRL+d # set to false if a comment character/string should start at column 0 of a line, true uses any #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # the following characters are these which a "word" can contains, see documentation # default extension used when saving files # these are some doxygen keywords (incomplete)ĭocComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union Secondary=add alias ascending async await descending dynamic from get global group into join let orderby partial remove select set value var where yield Primary=abstract as base bool break byte case catch char checked class const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long namespace new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual void volatile while Paste this code below into that file and save it.Ĭode: Select all # For complete documentation of this file, please see Geany's main documentation file-pathsĢ) In "/filedefs", create an empty text file. So in order to not make commented out code blocks containing an "if" (or similar) fold, wrap it in "#(" and "#)".ġ) Find Geany's user configuration directory (OS dependant). I had to work around the visual code folding rules which would start a fold by detecting an "if" (or similar), regardless of the line being commented out or not*, by defining a fake multiline comment rule. It's based on Geany's default C# filetype and is not perfect, as much of the highlighting depends on Geany's lexer definitions, which are unfortunately hard-coded. This is rudimentary filetype file for syntax highlighting in Geany, a lightweight, multiplatform editor and IDE based on Scintilla and my favourite tool of the trade.
0 Comments
Leave a Reply. |