Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I find myself reluctant to read code without syntax highlighting. On an almost daily basis, I end up downloading or copy-pasting large blocks of code from a browser window into vim just for the sake of seeing it in color.

Is there a more elegant solution? is there a plugin for firefox or chrome that allows me to apply syntax highlighting to any page?

share|improve this question

closed as not constructive by gnat, MichaelT, Martijn Pieters, World Engineer Mar 25 '13 at 0:05

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

You could try this from user scripts –  Conrad Frix Mar 25 '13 at 13:43

2 Answers 2

up vote 0 down vote accepted

Chrome plugin:

share|improve this answer
This seems to work as advertised. Unfortunately, it seems to be incompatible with the addon Corad posted, I'll have to disable one to use the other. At any rate, it's a lot better than nothing! thanks! –  SingleNegationElimination Dec 24 '10 at 15:01

For Firefox, I would recommend Mozilla Lab's Ubiquity add-on, "an experimental interface based on natural language input".

Syntax highlighting is only one of the many useful commands that comes with the add-on, and as a programmer, I think the command line-like interface should be easy to learn and use.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.