Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: syntax highlighting of code in perlmonks forums

by CukiMnstr (Deacon)
on Jun 10, 2003 at 02:19 UTC ( #264524=note: print w/replies, xml ) Need Help??

in reply to syntax highlighting of code in perlmonks forums

Even if I use syntax highlighting and like it very much, I don't think it is appropriate for code posted here.
First of all, some monks have said here that they do not like syntax highlight, so I guess you will find the first critics for your idea there.
And then there is the big question: which colorscheme should the monastery use? For example, the code you just posted is unreadable on my white background, and there are many different looks (or color themes) one can choose from the user preferences. You can even use your own stylesheet to define your own colors.
With so many choices for the colorscheme of the site, syntax highlight for the code posted seems like too much trouble to be worth. Besides, you can always d/l the code and open it in vim ;)

hope this helps,

  • Comment on Re: syntax highlighting of code in perlmonks forums

Replies are listed 'Best First'.
Re: Re: syntax highlighting of code in perlmonks forums
by diotalevi (Canon) on Jun 10, 2003 at 12:30 UTC

    Which now brings up the question - is there a vim mode for browsing PerlMonks that knows what to do with the d/l code links?

      You just have to tell your browser to open the particular content type (text/plain with gvim, or a g?vim? in a terminal emulator egxterm -e vim. Opera will all you to do all manner of silly things with content types it doesn't know internally, such as passing the uri/downloaded version/filenames to another program etc...

      I'm pretty sure the only thing you could do at PM's side to help this is by allowing the user to select the Content-Type header sent with code downloads, allowing the user to specify a header of text/x-vim, or perhaps a type perlish, so windows users get it going to their perl editor instead of their regular text editor (which most likely defaults to notepad)

      @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://264524]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-02-25 06:44 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (108 votes). Check out past polls.