On 8/17/07, Sebastian Menge <[EMAIL PROTECTED]> wrote:
> > Yes there is. :h :TOhtml
>
> Ok, more concise: :-)
>
> Should we use that? I mean we would get probably ugly html-code inside
> the tips instead of <pre></pre>.
>
> I think it should be mentioned as an option somewhere and taken into
> consideration, but <pre> is much easier ...
I prefer not having syntax highlighting in the code rather than ugly
HTML directly in the source of the page, making it hard to update.
People who really want colours can copy-paste the code into Vim...
If we really want syntax highlighting, I think the ideal way would be
something like this:
{{BeginColouredCode
|language=viml
|code=
nmap <Tab> :bn<CR>
}}
The code would then be converted on server side (calling an external
script), to get the syntax highlighting for the given language.
I don't know if templates are powerful enough for this kind of things (I
doubt it) nor if it is at all possible, but this would be perfect.
OK, enough dreams :)
Cheers,
--
Olivier
_______________________________________________
Vim-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/vim-l