What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

(along with almost all of the Sencha tags) will all have their code examples written in .

Since the language type for prettify is inferred from the tags, I'm suggesting that Sencha Touch, and other Sencha tags be recognized by prettify as lang-js.

share|improve this question
    
1  
@hammar remember that any diamond mod can edit the highlighting rule for a given tag.. either "none", "automatic", "specific-language".. etc –  Jeff Atwood Jan 22 '12 at 9:34
    
@JeffAtwood I'd still like to see this happen. There are tons of JS libraries out there with SO tags. Those libraries should be prettified without the need to specify javascript or manually lang-js. –  Chase Florell Feb 5 '12 at 23:31

1 Answer 1

On Stack Overflow, the language associated to a question is, by default, automatically detected. The automatic detection is normally good at guessing what language is used, when the language has a C/C++ syntax, or it is HTML/XML. There are few cases where the code could be interpreted as being written in a different language, such when the used snippet is using constructs that are used from more than one language.

Apart those cases, there is normally no need to associate a language to a specific languages. In the specific case, I am not sure there is the need to set "lang-js" as language associated with any JavaScript library tag, when it is possible to add to those questions.
What would happen if the library is ported to other languages, and is used also for the porting to another language?

share|improve this answer
    
I had to add lang-js to this answer in order for syntax highlighting to work. –  Chase Florell Dec 22 '11 at 19:46
    
The alternative is using javascript for questions that are about JavaScript, like the one you are referring. –  kiamlaluno Dec 22 '11 at 19:48
    
This is of course an option. But not everyone will, yet every question tagged sencha-touch will require lang-js syntax highlighting for code examples –  Chase Florell Dec 22 '11 at 19:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .