awarded
awarded
awarded
comment
In the R language, should I use the R 4.1.0 function shorthand "\()" in answers?
@TheThonnu why'd you do that when all versions that do not support f'' strings are already past end of life
awarded
revised
Loading…
awarded
awarded
comment
The new syntax highlighter color choices are confusing
@JoshGoebel well, it is getting fixed slowly, seems that C and C++ were separated from the "c-like"... I am not saying that colouring declarations differently from statements is wrong if you can do it right, it is just that it is impossible to do right without complete source and a C++ compiler.
x * y(z);
is undecidable alone - is that a declaration or an expression?
comment
Should the [c++] tag be mandatory for posts with C++ language version tags?
@0-1 that "new contributor" thing is a meta bug :D
comment
C/C++ highlight.js not consistent with #ifdef preprocessor defines
@DavidC.Rankin as noticed before the Highlight.js tries to have a context-sensitive highlighter... additionally it is highlighting C code as C++! And you cannot do a context-sensitive highlighter for C++ because of the macros, defines and types are unknown...
comment
(Yet Another) Answer that is worded slightly differently
While it looks like one, that "answer" is not an answer. It is the canonical "Thank you" Not-An-Answer, as evidenced by the fact that it ended with
thx @Skotti
, where Skotti is the author of the accepted answer. And FWIW, the moderator that deleted the answer is - I believe - not a subject expert on Ruby, but a subject expert on Not-An-Answers.
comment
Wrong syntax highlighting of Python default arguments
@Makyen FWIW I've noticed that highlight.js deliberately does some really misguided stuff, like attempting to colour entire syntactic structures instead of just tokens.
comment
Wrong syntax highlighting of Python default arguments
@martijn why did you hammer this question to that one :D
comment
Reopened topics don't draw attention
It is still not a good question as it stands. It definitely needs the code in it.
comment
New Syntax Highlight Colors for Dark Theme are Wildly Different with Change of Highlight Engine
@JonathanLeffler so apparently SO the corporation thought that since prettify is not being supported, they would switch to a library that is supported and that they would get the new languages for free, and we the contributors (read: the product) would then happily contribute those rules for them.
comment
The new syntax highlighter color choices are confusing
@chqrlie if you look into the highlight source code, the reason for the bad colourings are because "C === C++", and they've got this misguided attempt at colouring C++ declarations differently from statements.
comment
New Syntax Highlight Colors for Dark Theme are Wildly Different with Change of Highlight Engine
The reason is this: github.com/highlightjs/highlight.js/blob/master/src/languages/… "Until C is actually different than C++ there is no reason to auto-detect C as it's own language since it would just fail auto-detect testing or simply match with C++."