Skip to main content
9 events
when toggle format what by license comment
Apr 20, 2023 at 16:56 comment added Makyen Mod While it would be great to have the system use all defined, default, syntax-highlighting languages for the tags supplied, that is, unfortunately, not what happens, at this time. It is how it used to work when this was first looked at, but how SE handles things changed. If SE, ever, changes back to a reasonable handling of having multiple default, syntax-highlighting languages for the included tags, then it will be quite reasonable to define a default, syntax-highlighting language for non-language tags where the tag is reasonably used with more than one language.
Apr 20, 2023 at 16:56 comment added Makyen Mod @Marijn If the person is including code, then it's about code in a language and the language tag should be included. If it's strictly about the framework, without referencing any code, then why does the default syntax-highlighting language matter? The issue of assigning syntax highlighting languages to tags which aren't languages is an issue of having the least conflict of expectations. If a language tag is included in the question, then that is the language that should be used for syntax highlighting, unless there's substantial indication that something else should be used.
Apr 20, 2023 at 16:27 comment added Marijn Re adding language tags: the feature request here makes the valid point that these questions are not about the language but about the framework and therefore the language tag should not be added, it would just clutter the questions without adding anything except for setting the syntax highlighting (after this change), which is Python anyway in almost all cases. You didn't address the statistics argument, I don't think the added value for c++ users outweighs the mis-highlighting introduced for posts using Python.
Apr 20, 2023 at 16:01 comment added Makyen Mod Ideally, the list of languages associated with the tags on the question would be used as the ones from which the autoselection is done (with, perhaps, an upward adjustment in relevance for actual language tags). Another potential, implementation would be to use auto-detection all the time, but substantially bump up the resulting relevance of each of the languages associated with tags on the question, with, perhaps, a higher bump for actual language tags. If SE used the list of associated languages, then we could associate tags that tend to be a particular language.
Apr 20, 2023 at 16:01 comment added Makyen Mod @Marijn The tags under discussion here aren't language tags, so don't have an inherent language which users should be expecting to be used for syntax highlighting any code which they are providing. If they are including code, then they should add that code's language tag. When a user includes an actual language tag on the question, then there's a very reasonable assumption that that language will be used for syntax highlighting. When they don't include a language tag, they might desire a particular language to be used, but they haven't actually specified one.
Apr 20, 2023 at 11:24 comment added Marijn I don't really understand the reasoning here. You say that no highlighting is better than wrong highlighting. But by setting these tags to none, the library has to guess (in absence of a main language tag), which means that more questions will now get wrong highlighting. Of course there are also questions that will now be guaranteed correct (like c++ tensorflow), but given that the overwhelming majority of questions in these tags are using Python (as demonstrated in the feature request), statistically this is surely going to make things worse overall.
Apr 19, 2023 at 19:59 history edited V2BlastStaffMod CC BY-SA 4.0
added 1 character in body
Apr 19, 2023 at 19:18 comment added Konrad Rudolph Thanks for undoing the syntax hinting. That said, as fas as I am concerned the situation does not require further action in the future: even with better language detection there’s zero benefit to associating these tags with any syntax highlighting language. This request never made sense.
Apr 19, 2023 at 16:39 history answered MakyenMod CC BY-SA 4.0