The highlighting tag has no wiki summary.
55
votes
12answers
12k views
How to have tail -f show colored output
I'd like to be able to tail the output of a server log file that has messages like:
INFO
SEVERE
etc, and if it's SEVERE, show the line in red; if it's INFO, in green. What kind of alias can I ...
0
votes
1answer
21 views
What is this feature in Linux 'to highlight characters' with QT?
Recently I came across this site.
It says, in Linux with QT, it is possible 'to highlight characters' by pressing ShiftCtrl {Left,Right} or Shift {Left,Right}.
Could somebody please explain this ...
1
vote
2answers
35 views
No syntax highlighting when editing crontab
I am trying to figure out why I don't have syntax highlighting when editing my crontab.
I have both $EDITOR and $VISUAL set to /usr/bin/vim:
> echo $EDITOR
/usr/bin/vim
> echo $VISUAL
...
1
vote
1answer
44 views
mark or color empty directories for `ls`
ls's -F flag allows to see the types of file and distinguish directories. Is there a way to add a functionality to distinguish an empty directory?
3
votes
4answers
826 views
Command that highlights regex in text?
Is there a command that highlights a certain expression in text?
I'm looking for something like the 'search' function in less, but with normal text output on stdout, instead of the less viewer.
...
6
votes
4answers
1k views
`highlight` command
Is there a command which can be used to easily highlight (with colors, bold text or inverted back-/foreground) specific strings in stdin while passing the entire string to stdout? I'm thinking of ...
2
votes
1answer
189 views
How to get transient highlighting to work from an elisp script?
I want an elisp script to highlight a region of text.
Upon exit, the highlighted selection should disappear when a key is pressed.
Everything I've tried results in the highlighting hanging on like the ...
13
votes
2answers
2k views
How can I display syntax highlighting on a file?
Is there a variant of cat that outputs syntax-highlighted lines of code when used on a source file?
An idea: maybe vi[m] or another editor can be asked to dump the syntax-highlighted contents of said ...
7
votes
3answers
304 views
syntax_highlight <source_file> | lpr
Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer?
As the wording of the ...
2
votes
1answer
113 views
Vim Highlight only the characters, which produce comments
I am trying to achieve the following. If I have a file, e.g. a tex document and I want to have the following with commenting characters (% symbols) highlighted:
%
Some text and end of the ...
0
votes
2answers
643 views
Highlight the current date in cal
I would like to highlight today's date in the output of the cal command. What is the best way?
This is what I have so far:
cal -m | grep -C6 --color "$(date +%e)"
but it doesn't work for all cases ...
4
votes
1answer
581 views
Text editor with font-size selection for specific human languages (ie. Unicode Block) eg Devanagari
Pre Linux, I used Windows.. (too many years in the wilderness :) ... however there was a ray of sunshine in amongst all the general virus/re-install flack.. and that was Notepad++, a text Editor I ...
2
votes
2answers
1k views
In SciTe (Scintilla), how can I create Syntax-Highlighting for my own custom language?
I want to create a custom Language, with its own custom Syntax Highlighting.
Notepad++ (a Windows SciTe/Scintilla based Text-editor), allowed me to create a custom "Language", and now, in Linux, I ...