1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
nano-highlight
==============
A spiffy collection of nano syntax highlighting files
-----------------------------------------------------
*Most* (ok, prettymuch all) of these have been stol\*COUGH\* politely included in this repository. Proper
attribution follows at the end of it all... Unless otherwise specified, all files are under the [unlicense](http://unlicense.org/)
WTF do i need these stupid things for???
----------------------------------------
Well, if EMACS or vi are too much of a **PITA** for you to learn, and all the other text editors you've used are
likewise annoying for some reason (yes i'm looking at you Kate & Gedit) then nano is probably your best option! (Or
if you just like the simplicity of using an extremely lightweight console editor, which is one of the biggest reasons
why __*I*__ use it)
So HTF do i use these things???
-------------------------------
One of the easiest ways is like this:
`git clone git://github.com/serialhex/nano-highlight.git ~/.nano`
then simply add the different \*.nanorc files that you want to use to your `~/.nanorc` file. for example, this is mine:
```bash
## my awesome ~/.nanorc file!!!
## spifftastic nano highlighting nano!!
include "~/.nano/nanorc.nanorc"
## Ruby
include "~/.nano/ruby.nanorc"
## C/C++
include "~/.nano/c.nanorc"
## Python
include "~/.nano/python.nanorc"
## Bourne shell scripts
include "~/.nano/bash.nanorc"
## CSS
include "~/.nano/css.nanorc"
## HTML
include "~/.nano/html.nanorc"
## Markdown
include "~/.nano/markdown.nanorc"
```
There are other spiffy things you can do in your `.nanorc` file, see [nanorc manpage][] online or your very own nanorc manpage for more details.
[nanorc manpage]: http://www.nano-editor.org/dist/v2.8/nanorc.5.html
OOH!!! that's spiffy!! thanks for all your hard work in making all these files!!
----------------------------------------------------------------------------------
Umm, yeah, about that, i didnt make *all* of them, here is the list of who did what with whom:
### Files from [nanosyntax][] (New BSD license) ###
[nanosyntax]: http://code.google.com/p/nanosyntax/
| | | | | |
| --- | --- | --- | --- | --- |
| apache2.nanorc | css.nanorc | httpstatuscodes.nanorc | nscd.nanorc | rcfiles-new.nanorc |
| apacheconf.nanorc | debian.nanorc | info.nanorc | others.nanorc | rsync.nanorc |
| aptsrclist.nanorc | default.nanorc | ini.nanorc | paludis.nanorc | ruby.nanorc |
| asm.nanorc | delphi.nanorc | initng.nanorc | passwd.nanorc | shlike.nanorc |
| bash.nanorc | desc.nanorc | initscript.nanorc | patch.nanorc | sh.nanorc |
| c-file.nanorc | dotemacs.nanorc | java.nanorc | perl.nanorc | softcam.nanorc |
| changelog.nanorc | dummy.nanorc | js.nanorc | php2.nanorc | sources_list.nanorc |
| changelogs.nanorc | ebuild.nanorc | log-stuff.nanorc | php.nanorc | tab.nanorc |
| clike.nanorc | ekghistory.nanorc | maincf.nanorc | plaudis.nanorc | tcl.nanorc |
| c.nanorc | etcportage.nanorc | makefile.nanorc | po.nanorc | tex.nanorc |
| config2.nanorc | etc-stuff.nanorc | man.nanorc | postgresql.nanorc | urls.nanorc |
| config3.nanorc | etcxml.nanorc | mcchangelog.nanorc | pov.nanorc | vhost.nanorc |
| configfiles.nanorc | gentoo.nanorc | mimetype.nanorc | privoxy.nanorc | xdefaults.nanorc |
| config.nanorc | groff.nanorc | mutt.nanorc | profile.nanorc | xml.nanorc |
| conf.nanorc | havp.nanorc | named.nanorc | python.nanorc | xorg.nanorc |
| conky.nanorc | html.nanorc | nanorc.nanorc | rcfiles.nanorc | |
### Files from [scopatz / nanorc][] ('do whatever you want' licence) ###
[scopatz / nanorc]: https://github.com/scopatz/nanorc
*his repo has since changed, see LICENSE for the new license these fall under*
| | | | | | |
| --- | --- | --- | --- | --- | --- |
| apacheconf.nanorc | css.nanorc | groff.nanorc | man.nanorc | patch.nanorc | python.nanorc |
| asm.nanorc | cython.nanorc | html.nanorc | markdown.nanorc | perl.nanorc | tex.nanorc |
| fortran.nanorc | java.nanorc | mutt.nanorc | php.nanorc | reST.nanorc | xml.nanorc |
| gentoo.nanorc | lua.nanorc | nanorc.nanorc | pov.nanorc | ruby.nanorc | sh.nanorc |
| c.nanorc | conf.nanorc | | | | |
### Files found 'round the net (see the file for more info) ###
| | |
| --- | --- |
| markdown.nanorc | txt2tags.nanorc |
### Files from [aaronhamilton / coffeescript-nano][] ###
[aaronhamilton / coffeescript-nano]: https://github.com/aaronhamilton/coffeescript-nano
| | |
| --- | --- |
| coffee.nanorc | |
## This is the end ##
That's it, have fun & dont hurt yourself!!
|