Since kotlin is now on 1.0, support for syntax highlighting of this JVM language would be nice. Answers like this would much benefit from this feature.
-
21kotlin has 671 questions, MATLAB has 57121 and no syntax highlighting either.– AdriaanCommented Feb 17, 2016 at 11:08
-
5Which syntax highlighter is the best match? Choose one from the supported list.– reneCommented Feb 17, 2016 at 11:08
-
If an already supported language matches the same or similar style of highlighting, you can force it within the code snippet. Not saying that's the answer - obviously it would be nicer still to not have to manually do it, but just an option.– SierraOscarCommented Feb 17, 2016 at 14:49
-
1@Adriaan this is the status quo right now, Kotlin is version 1.0 while Matlab 8.6, Kotlin is free to use while Matlab is a pricey product. I think a one dimension comparison is misleading in this case.– IstvanCommented Feb 17, 2016 at 15:06
-
MATLAB is supported by prettify (and has been since 2013). It would be odd if stack overflow did not also support it. github.com/google/code-prettify/blob/master/src/lang-matlab.js– Michael Lloyd Lee mlkCommented Feb 17, 2016 at 16:17
-
1@mlk It has been asked on meta almost a year ago lots of upvotes and bled to death over time.– AdriaanCommented Feb 17, 2016 at 16:31
-
1@Matt It would be nice if we could get even a comment from a mod regarding MATLAB syntax highlighting on the question linked by Adriaan. After all, it's been 4 years now... meta.stackexchange.com/questions/123274/…– beakerCommented Feb 17, 2016 at 16:51
-
1@beaker: MATLAB syntax highlighting isn't something a moderator can do. Per meta.stackexchange.com/a/170264, a dev needs to update the version of the prettify library Stack Overflow uses, and/or make lang-matlab available for moderators to select.– Matt ModCommented Feb 17, 2016 at 16:59
-
2@Matt Cool, thanks for the response (and I mean that sincerely). So how do we get a dev to look at the request and give some sort of feedback? Or do we need to open a duplicate request on meta.stackexchange?– beakerCommented Feb 17, 2016 at 17:05
-
@beaker: Daniel has brought meta.stackoverflow.com/questions/287407/… back to the first page by editing it. There's a chance that someone at SE HQ will notice it that way...– Matt ModCommented Feb 17, 2016 at 17:12
-
@Matt I tried that in August with this post. But maybe it will work this time. Thanks for your time.– beakerCommented Feb 17, 2016 at 17:28
Add a comment
|
2 Answers
I've enabled the "default" syntax highlighting for the kotlin tag, which makes the answer you linked to look more colourful; How do I write to a file in Kotlin?
If you do find a more suitable supported highlighter, let me know and I can switch it accordingly.
-
Thanks, that's much nicer. I understand to have a highlighter, somebody has to implement it.– user5547025Commented Feb 17, 2016 at 15:16
-
@Tichodroma: For new highlighters, then yes... somebody has to implement it. However, what you often find is that you can re-use an existing highlighter, even if it wasn't specifically written for a language.– Matt ModCommented Feb 17, 2016 at 16:01
-
It's not going to come anytime soon. The request has been denied
I've written a syntax highlighter for Kotlin and on the 15th of August 2017 it has been merged to the code-prettify repository (what StackOverflow uses). StackOverflow should update it's code-prettify's version shortly.