Tuesday, February 2, 2016

Highlighting Multi-line Code in Status Log

Hi,

I keep a text file where I log all the work that I do (or as best as I
can). I have an existing highlight rule wihc highlights "Code". It
looks like this:


syn match Code '`.*`'

I would like to add another rule that will highlight a multi-line
command line prompt. Something like this:

$ svn mkdir --parents -m 'Creating master branch' \
svn://svn.example.com/documentation/master

This rule will highlight the first line:

syn match Code '$.*'

How can I get it to highlight subsequent lines. The trailing back-slash
will indicate continuation to the next line.

Thanks in advance.

--
Stephen Rasku
Linux Developer
Wurldtech Security Technologies

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment