Post #199,688
3/21/05 8:47:30 AM
|
ROFL
Uh huh... :-D
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #199,689
3/21/05 8:48:06 AM
|
Why rofl?
It'd rock.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #199,691
3/21/05 8:50:14 AM
|
That's not the issue.
Of course it would rock.
Which syntax? And who writes the parser to figure out what needs highlighting?
The ROI isn't high on that one.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #199,694
3/21/05 9:00:35 AM
|
All of them. You.
There. Not so hard, was it?
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #199,696
3/21/05 9:09:27 AM
|
So, you want EMACS in *Z*?
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"] No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
|
Post #199,697
3/21/05 9:10:38 AM
|
*I* can't think of a single *valid* objection.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #199,717
3/21/05 10:26:08 AM
|
No, gvim
But gvim does get confused occasionally. Page-Up / Page-Down usually fixes it.
|
Post #199,754
3/21/05 1:48:04 PM
|
You're being too lazy
Let me outline how to do it in such a way that you'll find most of your work already done for you. Install gvim. Write a small utility to save the current file to a filename with an extension indicating the current filetype. (.html, .pl, .c, etc) Then run the following shell command: \ngvim -f +"syn on" +"run\\! syntax/2html.vim" +"wq" +"q" $filename\n Now read back $filename.html. Post-process that slightly if you want. (You may not need to escape ! depending on how you execute this - in bash I need it.) This will work somewhat better if gvim has access to X. (According to the documentation it does a better job of picking colors, whatever that means.) Voila! Cheers, Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
|
Post #199,775
3/21/05 2:44:13 PM
|
Au contraire
I'm more interested in the system being self-contained. With such a constraint, implementing this suggestion entails quite a bit more work than "shell out to gvim"...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #199,780
3/21/05 2:56:29 PM
|
You can still leverage the effort though...
Many editors have syntax highlighting files.
If you write a parser that parses some editor's syntax highlighting files and then displays based on that, then you at least don't have to write your own syntax files - you just need the parsing and the display code.
Cheers, Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
|
Post #199,787
3/21/05 3:17:53 PM
|
"just"...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #199,789
3/21/05 3:22:15 PM
|
Compared to what you save...
the effort that you'd have to expend is the merest trifle. :-P
Cheers, Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
|
Post #199,792
3/21/05 3:25:15 PM
|
Compared to doing nothing and laughing at Peter...
It's a lot of work, and not nearly as satisfying...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|