Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are some steps to help you out.</p> <ol> <li>Create a new directory in <code>/usr/local/share/</code> called 'nano' like this:</li> </ol> <blockquote> <p>mkdir /usr/local/share/nano</p> </blockquote> <ol start="2"> <li>Now, using nano, make a nano resource file for your C syntax like this:</li> </ol> <blockquote> <p>nano /usr/local/share/nano/c.nanorc`</p> </blockquote> <ol start="3"> <li>Now put your C code highlighting in this file and save it. Here is a link to some possible C syntax highlighting:</li> </ol> <blockquote> <p><a href="http://code.google.com/p/nanosyntax/source/browse/trunk/syntax-nanorc/c.nanorc" rel="noreferrer">http://code.google.com/p/nanosyntax/source/browse/trunk/syntax-nanorc/c.nanorc</a></p> </blockquote> <ol start="4"> <li>Save that file and now open your user’s nano resource file by typing:</li> </ol> <blockquote> <p>nano ~/.nanorc</p> </blockquote> <ol start="5"> <li>In this file, add a reference to the c.nanorc file you just made like this:</li> </ol> <blockquote> <p>include "/usr/local/share/nano/c.nanorc"</p> </blockquote> <ol start="6"> <li>Save your user resource file.</li> </ol> <p>Now, when you open up C files, you should see syntax highlighting. You can add additional syntax highlighting for different types of files using the same method. Just add more lines to your <code>~/.nanorc</code> file.</p> <p>Note that depending on your user permissions, you may have to precede some of the above commands with sudo and then enter your root password.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload