Mercurial > repos > other > linux
annotate nanorc @ 101:845e08259ab0
Syntax highlighting strings in PHP/HTML is complicated!
Still has problems with colouring mixed HTML strings and object functions
but this seems unavoidable with the regexes we have without losing
colouring elsewhere
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 02 Apr 2018 20:17:48 +0100 |
parents | e7a2fbd79035 |
children | f2d500466492 |
rev | line source |
---|---|
18
1ec9a1720c5c
Add XCompose (custom compose key combinations for odd characters) and Nano config
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 set nowrap |
1ec9a1720c5c
Add XCompose (custom compose key combinations for odd characters) and Nano config
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 set nonewlines |
93
411e0a1c4382
Hide warnings and solve cross-version compatibility
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
3 set autoindent |
94
ac4d97a07527
New Nano doesn't like the old "set const" despite "set quiet"
IBBoard <dev@ibboard.co.uk>
parents:
93
diff
changeset
|
4 # Note: This won't work in older Nano, but if we include "set const" then newer Nano complains |
ac4d97a07527
New Nano doesn't like the old "set const" despite "set quiet"
IBBoard <dev@ibboard.co.uk>
parents:
93
diff
changeset
|
5 # DESPITE including "set quiet" later |
ac4d97a07527
New Nano doesn't like the old "set const" despite "set quiet"
IBBoard <dev@ibboard.co.uk>
parents:
93
diff
changeset
|
6 set constantshow |
93
411e0a1c4382
Hide warnings and solve cross-version compatibility
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
7 |
411e0a1c4382
Hide warnings and solve cross-version compatibility
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
8 ## Set quiet mode to deal with differences between Desktop and Server version support |
411e0a1c4382
Hide warnings and solve cross-version compatibility
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
9 set quiet |
411e0a1c4382
Hide warnings and solve cross-version compatibility
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
10 |
85
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
11 ## Nanorc files |
90
4342e7b19fa8
Standardise nanorc colouring with other file types
IBBoard <dev@ibboard.co.uk>
parents:
89
diff
changeset
|
12 include "~/.nanorc.d/nanorc.nanorc" |
85
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
13 |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
14 ## Patch files |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
15 include "~/.nanorc.d/patch.nanorc" |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
16 |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
17 ## Perl |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
18 include "/usr/share/nano/perl.nanorc" |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
19 |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
20 ## Python |
88
93b29bcbc9e7
Tidy up Python colouring so it doesn't burn eyes
IBBoard <dev@ibboard.co.uk>
parents:
85
diff
changeset
|
21 include "~/.nanorc.d/python.nanorc" |
85
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
22 |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
23 ## Ruby |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
24 include "/usr/share/nano/ruby.nanorc" |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
25 |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
26 ## PHP (and HTML) |
84
b989099cde9f
Start to update Nano colourisation
IBBoard <dev@ibboard.co.uk>
parents:
80
diff
changeset
|
27 include "~/.nanorc.d/php.nanorc" |
85
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
28 |
ef08bb127ede
Ditch third-party nanorc configs and just add what we use
IBBoard <dev@ibboard.co.uk>
parents:
84
diff
changeset
|
29 ## Bourne shell scripts |
89 | 30 include "~/.nanorc.d/sh.nanorc" |
95 | 31 |
32 ## XML | |
33 include "~/.nanorc.d/xml.nanorc" |