News for hackers. Stuff that matters.
Re:Gist - a git powered paste site by tlrobinson on Monday July 21, 2008 @04:59PM (#252676)
Neat, except it doesn't always use the correct syntax highlighting. It seems like it uses filename extensions to determine the language, which can be ambiguous if two different languages use the same extension (I tried saving as Objective-C but it shows it as Matlab. Both use the .m extension)
Re:Gist - a git powered paste site by pjhyett on Monday July 21, 2008 @05:25PM (#252700)
It'll try to guess the highlighting if you name the file with an extension, otherwise you can select the correct highlighting via the dropdown for the situation you're describing.
Re:Gist - a git powered paste site by tlrobinson on Monday July 21, 2008 @05:27PM (#252702)
I didn't name my paste, I selected the language from the menu:

https://gist.github.com/198/bac462c7c01cedb22624147def12c65b...

The weird thing is it seems to use the correct highlighting in the "All Gists" listing.

Re:Gist - a git powered paste site by schacon on Monday July 21, 2008 @05:38PM (#252710)
just pushed a fix for this - thanks for pointing it out. it should be live with the next update.