On Fri, 28 Apr 2006, Tomasz Kalkosi?ski wrote:

Hello

Many times I open some strange file (some log, readme, txt, licence and many others) - they all have different syntax. While I don't want coloring to be 100% accurate I can have numbers, delimiters, cites, signs and other colored. I spent an hour an there it is:

http://www.vim.org/scripts/script.php?script_id=1532

This is an universal syntax script for all text documents, logs, changelogs, readmes and all other strange and undetected filetypes. The goal is to keep it very simple.It colors numbers, operators, signs, cites, brackets, delimiters, comments, TODOs, errors, debug and basic simleys ;]

Take a look at 4 screenshots and you should get general idea:
color default : http://www.haze.ehost.pl/pub/vim/txt-default.png
color dusk : http://www.haze.ehost.pl/pub/vim/txt-dusk.png
color metacosm : http://www.haze.ehost.pl/pub/vim/txt-metacosm.png
color elflord : http://www.haze.ehost.pl/pub/vim/txt-elflord.png

More details on script's page.

This is first version and your suggestions and feedback are very welcome.

This is a good idea! I have a couple of suggestions:

  (1) HiLink txtString Normal
      The highlight for alphabetic text may be too strong if linked to
      Identifier.

  (2) syn match txtNumber "\d\+"
      Decimal points look weird when viewing a version number, such as
      "5.5.4". Highlighting of dots "." already look good, even in
      between numbers, so why not let txtOperator take care of it
      altogether?

Thanks.
--
Gerald

Reply via email to