Add the possibility to color a source code SUBSTRING
`echo "There is an error in 'static void Functor::operator()( EOT& indiv ) { return indiv; }' you should fix it" | colout "'(.*)'" Cpp monokai`
This commit is contained in:
parent
f201fa0e70
commit
9da74a1202
2 changed files with 24 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ When not specified, a *COLOR* defaults to _red_ and a *STYLE* defaults to _bold_
|
|||
(see the `-t` switch below).
|
||||
|
||||
If the python-pygments library is available, `colout` can be used as an interface
|
||||
to it (see the `-s` switch below).
|
||||
to it (see also the `-s` switch below).
|
||||
|
||||
`colout` is released under the GNU Public License v3.
|
||||
|
||||
|
|
@ -124,3 +124,6 @@ special characters that would be recognize by your shell.
|
|||
* Color a JSON stream:
|
||||
`echo '{"foo": "lorem", "bar":"ipsum"}' | python -mjson.tool | colout -t json`
|
||||
|
||||
* Color a source code substring:
|
||||
`echo "There is an error in 'static void Functor::operator()( EOT& indiv ) { return indiv; }' you should fix it" | colout "'(.*)'" Cpp monokai`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue