This is not a real howto, but a small collection of neat little things.
Quickly show code syntax colour coded.
lesscode
with the
following lines:
#!/bin/bash
highlight -A $* | less -R
Extra parameters to the script controls the highlight
program./usr/local/bin
and run chmod 755 /usr/local/bin/lesscode
lesscode
command. You can also pipe code output
from some other program to this command, for example from
subversion, however you have to specify the syntax, for example
svn cat file.cpp | lesscode -S cpp
highlight
it possible to create a new custom
language definition. There are also extra definitions available
for download.Visualize the changes in versioning repositories, such as subversion (SVN) and CVS.
svn diff | kompare -o -
Rename files using regular expressions (regexp).
g-rename
, a part of the g-jutils
package. If you don't know regexp yet, this is the time to
learn it.