bdc90eb6c5
Replace the "Fraction" special by a string evaluation
...
Fractions are interpreted automagically, without the need to indicate a special.
This is thus a valid call:
`echo "[1/3-0.1%]" | colout -l 0,1 "^\[.*%\]$" Scale`
2014-04-07 09:59:26 +02:00
Philippe Daouadi
127b01e6f5
Make cmake coloring work with Ninja
2014-04-03 16:36:18 +02:00
7d589a68ba
Adds a LaTeX theme
2014-03-14 21:28:03 +01:00
230f1909bc
Rename java theme as javac
2014-02-21 14:51:15 +01:00
3def9779a4
Add a theme for java
2014-02-21 11:01:40 +01:00
488c2a2f88
Better help messages
2014-02-10 21:16:28 +01:00
4afd5aef69
Merge branch 'master' of http://github.com/nojhan/colout
...
Conflicts:
colout/colout.py
2014-02-10 21:07:51 +01:00
796246e789
Dynamic warning if babel or pygments are not installed
2014-02-10 21:05:21 +01:00
b9176eab52
Color the g++ command line call
...
Useful when your build system shows the commad line.
For example, set VERBOSE=1 with make.
2014-02-10 15:36:06 +01:00
2231cd89bd
Add a mandatory argument to --resources.
...
It should be use at least with an "all" argument.
Partially fix #49
2014-02-02 17:44:48 +01:00
ce3d22b97e
Merge pull request #57 from Louis-Kenzo/wip/hash
...
Add Hash special coloring mode
2014-02-02 08:03:57 -08:00
Louis-Kenzo Furuya Cahier
185be07c80
Add Hash special coloring mode
...
The Hash coloring mode computes a hash for a matched string segment, and
always associates the same color with the same string, yet varies colors
with even small changes.
2014-01-27 16:34:53 +01:00
Louis-Kenzo Cahier
6092addb10
Handle Unicode decode errors by continuing to process
...
Used to result in an uncaught exception.
2014-01-27 16:15:33 +01:00
483bb886d7
bugfix path match for python theme
2013-11-06 11:23:32 +01:00
50a77bb22e
add a theme for python stack traces
2013-10-10 22:22:36 +02:00
Johann Dreo
2616166f76
strip the color name before parsing it
...
This permits to use spaces to indent themes.
2013-10-10 22:17:50 +02:00
Johann Dreo
410aaf1623
add the "orange" and "purple" color synonyms
2013-10-10 15:56:24 +02:00
Johann Dreo
f59b9dfaf1
color "fatal error" in red in g++ theme
2013-10-10 15:55:45 +02:00
Johann Dreo
f30838cc57
Allow big group matching for "scale" special color
...
When matching a group with "scale", filter out everything that does not seem to
be necessary to interpret the string as a number this permits to transform
"[95%]" to "95" before number conversion, and thus allows to color a group larger
than the matched number
Update the cmake theme accordingly.
2013-09-25 00:04:20 +02:00
Johann Dreo
94e9d04866
bugfix in the cmake theme
...
Color the Linking sections with no slash
2013-09-23 12:35:41 +02:00
Johann Dreo
f7c73833b4
Correct small errors in cmake theme
...
Do not use nested groups for "Linking" messages.
Allow "-" in file names for "Building" messages.
2013-09-19 14:02:24 +02:00
Johann Dreo
460b126583
Better colorization of the linker in the g++ theme
2013-09-19 11:50:39 +02:00
Johann Dreo
a404aabada
Silently handle broken pipes
...
Two errors could occur when using a command that break the pipe on which
colout is supposed to write, like head or tail:
ls | colout . red | head -n 1
This fix set the SIGPIPE handler to kill the program instead of ending
in a write error when a broken pipe occurs and silently handle broken
pipes IOError exceptions.
2013-09-02 17:16:14 +02:00
Johann Dreo
f1bbd9eb16
Merge branch 'master' of http://github.com/nojhan/colout
2013-09-02 16:56:30 +02:00
Johann Dreo
2915389246
Use 256-colors for scale in cmake theme
2013-09-02 16:55:47 +02:00
Charles Lewis
6a6d8f8d62
bugfix #40 : don't try to color non-matching groups
2013-06-10 21:45:04 -04:00
Johann Dreo
c834c84e25
Merge branch 'master' of http://github.com/nojhan/colout
2013-06-10 10:53:22 +02:00
5026751c41
Add debug mode for re.compile
2013-06-05 20:08:00 +02:00
f082dbc3a2
feature #35 : show colors tags in debug mode
2013-06-05 13:19:03 +02:00
Johann Dreo
efe1d631f4
bugfix: explicit globals for nested conditional imports
...
Python3 does not import at module level from within a function. Globals must be explicits.
2013-06-04 13:09:15 +02:00
8d6e44d8fd
Refactoring colormaps
...
Bugfix scale configuration and logging.
Move every color map in colormaps
Use the case convention to switch mode.
Add a 256-colors mode scale (feature #37 ).
Add the spectrums colormaps, use them for scales by default.
Log the complete ANSI palettes numbers.
2013-05-31 11:01:46 +02:00
7e3e3efb88
bugfix: correct ANSI colors range in rgb_to_ansi
...
The function was trying to convert colors with values greater than 234, which do not exists in ANSI.
2013-05-30 19:01:06 +02:00
Johann Dreo
8832a41afe
Support for RGB hexadecimal triplets colors notations
2013-05-30 14:14:09 +02:00
Johann Dreo
ec196cab0b
bugfix: parse the scale min/max as float, not int
2013-05-30 10:32:26 +02:00
Johann Dreo
55f18d885e
bugfix: cleanly handle more errors when loading resources
...
Also print lexers after palettes.
2013-05-27 18:40:51 +02:00
Johann Dreo
d7dc047a2a
feature #33 : handle resources dirs. bugfix duplicated themes
...
Add -T and -P options to search for themes/palettes in additional directories.
Raise an error if duplicated themes name are found.
2013-05-27 18:11:41 +02:00
7ce5ad1eba
Add an option to print all the available features
2013-05-26 21:30:39 +02:00
81e2cc98ad
feature #32 : debug mode
2013-05-26 21:13:13 +02:00
0a4f9f12ed
Feature #31 : better error handling
...
Add dedicated exception and exit on specific error code.
Also put resource loading in separated functions.
2013-05-26 17:21:36 +02:00
baf412ea5b
Compress colormaps converted from RGB to ANSI
...
Avoid having two duplicated consecutives colors when using colormaps.
2013-05-26 16:50:04 +02:00
3f59b8c31f
Add GIMP palettes support, refactoring
...
You can now use GIMP palette file as a colormap, by using its filename as a color.
Add the well known Matlab jet72 palette (jet72.gpl).
Group functions in sections.
2013-05-26 16:14:23 +02:00
02a79ff10e
Refactoring: move stdin/out up to __main__
...
Use explicit stream variable in inner functions,
sys streams are thus only in use in the upper layer.
2013-05-26 10:44:16 +02:00
84f34a5cf4
Forgot to remove a test print
2013-05-25 18:58:33 +02:00
Johann Dreo
3f108692e8
Color code after a "note: candidate is/are:"
2013-05-23 14:45:03 +02:00
Johann Dreo
1968aa0197
Use python3's importlib instead of __import__
2013-05-23 14:15:41 +02:00
Johann Dreo
1fed20cba7
Expect formatted json as input, blue numbers
...
This patch avoid coloring what's inside item's strings, but expect a formatted input.
2013-05-17 11:13:53 +02:00
Johann Dreo
d04a9d85a9
json separators in yellow, color double quotes
2013-05-16 14:29:52 +02:00
Johann Dreo
9f77a5b54d
Separate g++ log with blue section lines
...
Every time g++ use "in/at", it starts a new error/warning paragraph.
Coloring those lines in blue mades it easier to spot messages.
2013-05-16 08:53:13 +02:00
894fab9c68
bugfix #27 : use default msg marker if no localization found
2013-05-05 00:30:43 +02:00
64454e42f1
Use python3 everywhere
2013-05-05 00:20:24 +02:00