12

I noticed that two of my favorite tags have the wrong syntax highlighting assigned to them:

  • has lang-lisp syntax highlighter instead of lang-clj;
  • has lang-default syntax highlighter instead of lang-coffee.

Named syntax highlighters:

I found no way to edit or suggest syntax highlighter for a tag in SO interface. Having such an option will help us keep syntax highlighting up to date.

It'd also be great to support lang-matlab highlighter, to serve as the default for the tag. Right now it's not in the list of supported highlighters.

27
  • coffee is a synonym for coffeescript; did you mean the latter?
    – Martijn Pieters Mod
    Aug 25, 2014 at 8:08
  • I don't think there's any such thing as lang-matlab. But these defaults can be changed by moderators, so posting here is an appropriate way to be heard.
    – Cody Gray Mod
    Aug 25, 2014 at 8:08
  • There is no lang-matlab; the lang-clj and lang-coffee languages are relatively newer, the clojure and coffeescript tag defaults were probably set before they became available.
    – Martijn Pieters Mod
    Aug 25, 2014 at 8:10
  • 1
    @CodyGray there is, here it is. Aug 25, 2014 at 8:10
  • 1
    @MartijnPieters and here is the one for clojure. Aug 25, 2014 at 8:11
  • Unfortunately, I can't find coffee highlighter in docs, but I've seen it some time ago and <!-- language: lang-coffee --> works perfect on SO. Aug 25, 2014 at 8:12
  • 2
    FYI, [clojure] was reported last week - meta.stackoverflow.com/questions/269222/… I think it's fine to tag it [feature-request].
    – BoltClock
    Aug 25, 2014 at 9:16
  • 2
    @LeonidBeschastny: I wouldn't call that 'works'; comments are not highlighted correctly. That's just the default highlighter making a guess and guessing wrong. You could put in lang-foobar there and get the exact same result.
    – Martijn Pieters Mod
    Aug 25, 2014 at 9:17
  • 2
    Lang-matlab exists @Martijn; just supposedly not implemented.
    – Ben
    Aug 25, 2014 at 9:36
  • 1
    @Ben it's not simply exists, it's already a part of google-code-prettify lib. Aug 25, 2014 at 10:02
  • 1
    I know, that fact is what I link to but it must be explicitly pulled and enabled by SE before it's used @Leonid.
    – Ben
    Aug 25, 2014 at 10:22
  • 9
    One year later (that's some timing...), Matlab highlighting still hasn't been pulled in, and no response whatsoever to a more recent feature request: meta.stackoverflow.com/questions/287407/…. A little feedback would be greatly appreciated.
    – beaker
    Aug 25, 2015 at 18:31
  • 1
    @MartijnPieters "lang-matlab is not [supported] yet"... So how do we get it supported? The code is there, and has been for over 3 years, but we need the devs to pull it in. The question in my previous comment has gotten a lot of upvotes, but no feedback as to how to make it actually happen.
    – beaker
    Mar 4, 2016 at 18:03
  • 1
    @beaker: start here: stackoverflow.com/company/team#Engineering. Loads of names are linked to SE accounts. Find em in chat. :-)
    – Martijn Pieters Mod
    Mar 4, 2016 at 18:17
  • 1
    @MartijnPieters Cool. Thanks for your time. I'll get the MATLAB chat room on it. :)
    – beaker
    Mar 4, 2016 at 18:19

0

You must log in to answer this question.