Recently I asked a question and created the new tag jison. I also tagged the question with javascript because that is what the language compiles to. However, I noticed that the title in the browser was prefixed with javascript -
which I believe should be changed to jison -
, as the primary code is written in the language Jison. Excuse me if tag priority cannot be changed, but I believe this is a bug and should be fixed.
-
\$\begingroup\$ IIRC it takes the most popular tag, rather than a 'language' tag. \$\endgroup\$– Peilonrayz ModAug 24, 2018 at 14:51
-
\$\begingroup\$ @Peilonrayz Than in this case, should I not tag the question with javascript \$\endgroup\$– FreezePhoenixAug 24, 2018 at 14:53
-
2\$\begingroup\$ I wouldn't as the question doesn't seem to have anything to do with JavaScript. And following your train of thought we should tag all C/C++ questions with assembly... But then it'd use a different tag rather than JavaScript so still wouldn't solve this problem. \$\endgroup\$– Peilonrayz ModAug 24, 2018 at 14:55
-
\$\begingroup\$ related codereview.meta.stackexchange.com/q/8902/162379 \$\endgroup\$– SummerAug 24, 2018 at 15:07
2 Answers
I looked and I don't think that we can change the hierarchy of the tags because they are based on SO's tag system.
My guess is that if you posted on their meta about it for their site, that you may be able to get it changed. But I'm not sure about the whole process.
Something else that should be discussed is the syntax highlighting. If it is close enough to JavaScript I could set that for the tag, but think it would only apply on Code Review.
-
\$\begingroup\$ The syntax for Jison is very close to that of YACC as opposed to JS \$\endgroup\$ Aug 24, 2018 at 14:59
-
\$\begingroup\$ I don't think SO have a pre-defined 'what's a language list', look at the question now, it says 'compiler' is the language as it's the most popular tag on the question. \$\endgroup\$– Peilonrayz ModAug 24, 2018 at 14:59
-
\$\begingroup\$ If the syntax highlighter for CR uses vim, I think I could get a vim file for Jison \$\endgroup\$ Aug 24, 2018 at 15:00
-
\$\begingroup\$ if I remember right they use google prettify or something like that, and just reference it. \$\endgroup\$– Malachi ModAug 24, 2018 at 15:00
-
\$\begingroup\$ @Peilonrayz Odd behavior. It's also the first tag listed - could that be what it is? \$\endgroup\$ Aug 24, 2018 at 15:01
-
\$\begingroup\$ It looks like it's using the correct one anyhow. Somehow. \$\endgroup\$ Aug 24, 2018 at 15:02
-
\$\begingroup\$ stackoverflow.com/editing-help#syntax-highlighting here is the SO highlighting \$\endgroup\$– Malachi ModAug 24, 2018 at 15:03
-
\$\begingroup\$ And here's a meta about the tag title selection \$\endgroup\$– Peilonrayz ModAug 24, 2018 at 15:06
To make jison be in the title it has to be the most popular tag on the question. Since it has one question you'd have to remove all the other tags, which I'd advise against.
As Malachi has mentioned syntax highlighting, this mechanism works separately to this tag title selection. In short it's bound to a tag.
They may both interact if there are two tags with syntax highlighting are used, and I'd assume it's the most popular tag that it'd use. But you can set a different default in the question if you want:
<!-- language-all: lang -->
-
\$\begingroup\$ No, if you have two tags with conflicting syntax-highlighting-preference, it simply uses
default
instead of either. \$\endgroup\$ Aug 30, 2018 at 23:17