2 ms·
It does have syntax highlighting, but the detection is not very good yet. At any rate, you can always change the extension on the URL and it will try to highlig
by jdiez17 14y ago
It does have syntax highlighting, but the detection is not very good yet. At any rate, you can always change the extension on the URL and it will try to highlight that language.
Thanks for the kudos!
- niggler 14y agoIs there syntax highlighting for shell scripts (.sh)?
- jdiez17 14y agoYep, just change the extension in the URL to .sh.
- niggler 14y agoThere's a bug in google code prettify which your syntax highlighting also shows: http://paste.pm/134.sh http://paste.pm/134.sh relevant bug: https://code.google.com/p/google-code-prettify/issues/detail?id=165 https://code.google.com/p/google-code-prettify/issues/detail...
- jdiez17 14y ago@niggler Huh, interesting. We're using Ace, though, so it's not related to Google Code Prettify, but still a bug.
- niggler 14y agoFiled issue: https://github.com/ajaxorg/ace/issues/1235 https://github.com/ajaxorg/ace/issues/1235 Next time, click on the "link" link next to a post you wish to reply to, and it will give you a reply option
- jdiez17 14y agoOkay, thanks a lot. PS: Nice tip, I'm still new to Hacker News :-)