parsed.org

Tips by tag: symlink

Syntax Highlighting by xinu on Dec 31, 2005 04:11 PM

If you would like to have syntax highlighting on a file that would otherwise not have any highlighting at all, you can symlink the file to the appropriate extension and open it:

$ ln -s example.lxp example.html
$ vi example.html # opened with pretty highlighting

*Note: This should be used sparingly and you should clean up your symlinks.

commandseditorshighlightingshellsymlinksyntaxvi
RSS