5
edits
No edit summary |
Waldyrious (talk | contribs) (fix syntax error (tested with nano 2.9.3)) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
== Syntax highlight == | == Syntax highlight == | ||
Nano can extended to highlight octave code. The following can be added to {{File|~/.nanorc|<pre> | Nano can be extended to highlight octave code. The following can be added to {{File|~/.nanorc|<pre> | ||
# Octave syntax colors | # Octave syntax colors | ||
syntax "octave" "\.m$" "\.octaverc$" | syntax "octave" "\.m$" "\.octaverc$" | ||
Line 17: | Line 17: | ||
# embraced | # embraced | ||
color brightred start="\(" end="\)" | # TODO: the next line needs to be fixed to work properly in all cases | ||
color brightred start="\(" end="\)" | |||
color blue start="\[|\{" end="\]|\}" | color blue start="\[|\{" end="\]|\}" | ||
edits