Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VIM TOhtml
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Wed Apr 16, 2008 4:00 am    Post subject: VIM TOhtml Reply with quote

If you execute :TOhtml in VIM, it will give you some HTML code that will display your code in a format that attempts to replicate what your VIM looks like - background color, syntax highlighting, indention, line numbers, etc.

Pretty useful.
Back to top
View user's profile Send private message
olivier elmekki
n00b
n00b


Joined: 29 Jan 2006
Posts: 55

PostPosted: Mon Apr 21, 2008 11:50 pm    Post subject: Reply with quote

wow, that's a trick, thanks a lot.

And with :let html_use_css = 1 and :let use_xhtml = 1, there's no more syntax plugin on webapps needed anymore.
_________________
blog : http://kikhome.net
professional site (french) : http://olivier-elmekki.com
Back to top
View user's profile Send private message
Alanceil
n00b
n00b


Joined: 14 Aug 2007
Posts: 36
Location: Regensburg, Germany

PostPosted: Wed Apr 23, 2008 8:40 pm    Post subject: Reply with quote

Whew. That is a really good find.
Thank you very much~
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2671
Location: here, there or in transit

PostPosted: Wed Apr 23, 2008 11:11 pm    Post subject: Re: VIM TOhtml Reply with quote

Phenax wrote:
Pretty useful.
Indeed.
Folks who use this might also find the ansi2html filter useful:see this topic.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum