3 ms·
A front-end dev friend of mind asked for code-embedding/syntax highlighting too! I'd be happy to add it if I can come up with an elegant implementation. Is ther
by sfard 14y ago
A front-end dev friend of mind asked for code-embedding/syntax highlighting too! I'd be happy to add it if I can come up with an elegant implementation. Is there a "markdown" for code that you know of?
- fizx 14y agoWhat language are you in? pygments seems to be the best regarded.
- Shank 14y agoGithub uses Pygments: http://pygments.org/ http://pygments.org/ I don't know what language you're using, but here's a Ruby library for it: https://github.com/tmm1/pygments.rb https://github.com/tmm1/pygments.rb Edit: Scrolled down and saw Django. Pygments is native to Python, so you might be in luck if you want to use that.
- sfard 14y agoAwesome, thanks. Will definitely add code support in coming days/weeks.
- lighthazard 14y agohttp://alexgorbatchev.com/SyntaxHighlighter/ http://alexgorbatchev.com/SyntaxHighlighter/ is a great place to start.
- tikhonj 14y agoIf you're going to add support for code (and you should!), consider also adding support for TeX. Something like MathJax[1] should work well.
- manveru 14y agoI always like https://code.google.com/p/google-code-prettify/ https://code.google.com/p/google-code-prettify/