6

(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.

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?

  • 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 .