Nano: Difference between revisions

Jump to navigation Jump to search
12 bytes added ,  7 February 2018
fix syntax error (tested with nano 2.9.3)
No edit summary
(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="\)" # this line needs to be fixed to work properly in all cases
# 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="\]|\}"


5

edits

Navigation menu