Nano Patchesnano is a console-based text editor. | |
---|
patches syntaxes todo documentation email
FINISHED - will be in patch 3
- NEXT-COLOR and NEXT-ICOLOR commmands.
- Single-line subcolors.
FINISHED - will be in patch 4
- FORCED-COLOR and FORCED-ICOLOR commands to temporarily disable match list.
- Match lists inside highlighter to speed up rendering by reducing the
number of matches. Also fixes the "foo//bar" and //foo"bar" problem.
TODO for patch 4
- Finish multi-line match list support. Will fix single/multi-line C-string problems.
TODO
- multi-line subcolors -- blue regex is only evaluated for the text between
start and end matches.
color red start="(" end=")"
{
color blue ","
}
- NEST prefix for nested multi-line COLOR and ICOLOR commands. Could be used for
languages that support nested comments so /* foo /* bar */ baz */ is correctly
highlighted. Could also be used to find unmatched parentheses or brackets.
# highlight matched parentheses
nest color red start="\(" end="\)"
# highlight unmatched parentheses
color blue "[()]"
This example would require a prefix to exclude the contents inside the match.
- ITEM and EVAL commands to store and evaluate collections of patterns.
item foo
{
color red "foo"
color blue "bar"
}
eval foo
- Menu to change syntax while inside nano.
- FOR command to load settings for files matching a pattern.
for "/path/*" "file"
{
set tabsize 8
}
- FILETYPE command to select syntaxes based on mime-type instead of filename.
brix au bfe cria asui more... nano
Copyright © 1995-2018 Brand Huntsman