60

The relevant PR was merged into code-prettify: https://github.com/google/code-prettify/issues/491

As per instructions, I'm asking to deploy it to the network and assign to kotlin tag.

-51

Kotlin simply isn't popular enough to warrant the additional bandwidth requirements of adding its own highlighter. Keep in mind that every user has to download that file, and adding to its size to accomodate a mere 4,300 questions that already seem to get highlighted decently by the default is not reasonable.

If Kotlin becomes more popular in the future, we will reconsider.

  • 15
    How popular should Kotlin become? Is there a number of questions we need to reach before you can reconsider? I can set myself a reminder to revisit this topic, but depending on the target value and given current trends I could estimate the date. – Ilya Ryzhenkov Aug 19 '17 at 17:55
  • 5
    Given that supported languages Dart and Erlang have 6,819 and 7,588 questions tagged respectively, it shouldn't be a long wait. – Ilya Ryzhenkov Aug 19 '17 at 17:58
  • 1
    It's more a combination of how much text it adds to the file compared to the benefit of adding it. E.g. if a new language adds very little text to the file and the highlighting for that language is completely broken without a custom highlighter, we're more likely to consider it regardless of number of questions. Is there some glaring issue that Kotlin faces with using the default highlighter? Because I haven't seen any complaints in how it's handled now. If the default works mostly fine, we're less likely to add custom support for the language early on. – animuson Aug 19 '17 at 18:05
  • 13
    It's not completely broken, that's true, but a number of keywords (fun, val, when) that are essential to Kotlin are not highlighted and reading the code is not so comfortable. The source is really small, assuming minifcation. – Ilya Ryzhenkov Aug 19 '17 at 18:45
  • 4
    @animuson There are other measures of popularity besides SO question count. See github.com/showcases/programming-languages or tiobe.com/tiobe-index for example. Kotlin has good docs, active forums and a rather expert user base, so you get less low-quality questions in that tag. – Ingo Kegel Aug 20 '17 at 7:29
  • 7
    Why don't include certain language highlighter only into pages which contain according tag? It's totally inconvenient to download over 9000 highlighters when I'm, for instance, interested only in Java and Kotlin q&a. – Miha_x64 Aug 20 '17 at 10:54
  • 8
    While I'm not an avid Kotlin fan or user, this is a very weak excuse that detracts from the community – davydotcom Aug 20 '17 at 13:25
  • 2
    @animuson "the community would like to have but just don't make sense to add" -> this is flawed reasoning – Ingo Kegel Aug 20 '17 at 19:46
  • 4
    @animuson With a service worker, you can cache languages highlightings, so no, wouldn't really make more requests to SO servers if designed properly. Of course, you would load all languages when you go on the "Ask question" page or when you write a reply, which doesn't matter a lot IMHO since (I think) people view more than they reply and ask questions. – Louis CAD Aug 20 '17 at 21:01
  • 1
    @Louis Please don't just assume things will work with some simple alternative. Our dev team has worked hard to provide features without inhibiting efficiency and has considered many possibilities. Oversimplifying things like this by coming up with your own "better" solutions only leads to disappointment. It really isn't that simple. – animuson Aug 20 '17 at 22:35
  • 1
    @animuson I think I understand things haven't been designed for the ideal I explained and it would require a significant amount of work. I was just saying how it could be done, and that a service worker to manage cache would lower servers costs. Anyway, I hope StackOverlow will soon support top OS (Android with more than 2B devices) newest programming language syntax highlighting :) – Louis CAD Aug 20 '17 at 22:40
  • 2
    @animuson Following your logic, it would make sense to count the number of times the Kotlin questions are read, not their total number. While there are relatively few Kotlin questions, something tells me that they are read much more often than for some other supported languages. If you can get those numbers, please post them in your answer to support it. – voddan Aug 21 '17 at 10:43
  • 7
    @voddan we can use SEDE for this: 2,338,741 total views according to this query. :) – Shadow Wizard is Ear For You Aug 21 '17 at 11:02
  • 2
    @animuson Looking at your recent developer survey I think the time has come to reconsider this question. – Ingo Kegel Mar 14 '18 at 8:11
  • 4
    Hi @animuson,maybe time to reconsider? I just started editing Android answers with the Kotlin equivalent of their answers. Non of the highlight works. it's plain text in grey area. I believe now with Google's official support for Kotlin in Android Studio.. the [Android] tag with 1.1 Million questions can use some Kotlin highlighting... – zaxy78 Mar 15 '18 at 20:34

You must log in to answer this question.

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