11 ms·
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
by tlrobinson 18y ago
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)
- pjhyett 18y agoIt'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.
- tlrobinson 18y agoI didn't name my paste, I selected the language from the menu: https://gist.github.com/198/bac462c7c01cedb22624147def12c65bbd23f2f5 https://gist.github.com/198/bac462c7c01cedb22624147def12c65b... The weird thing is it seems to use the correct highlighting in the "All Gists" listing.
- schacon 18y agojust pushed a fix for this - thanks for pointing it out. it should be live with the next update.