specify language using a code snippet #35

Gozala opened this Issue Apr 2, 2012 · 2 comments


None yet

2 participants

Gozala commented Apr 2, 2012

It would be great if one could specify language in a code snippet itself using shebang for example:


function hello(world) {
   // ....

Hey man. It's definitely a cool idea. Kinda goes along with trying to determine the language based on the code itself which some other syntax highlighting libraries do.

In the interest of keeping the library simple and small, I don't think I want to support this right now though.

What I may try to do down the road is make it so an optional additional file can be compiled in to do auto language detection so that way the core library stays really small, but for people who want that they can choose to include that in their package. We'll see.


Closing this in favor of #87

@ccampbell ccampbell closed this Jul 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment