↧
Answer by zcoop98 for Goodbye, Prettify. Hello highlight.js! Swapping out our...
status-bydesign(Manually changing this from bug to status-bydesign given my discoveries documented below.)I searched around, but I couldn't find any previous posts referencing regular expressions....
View ArticleAnswer by Konrad Rudolph for Goodbye, Prettify. Hello highlight.js! Swapping...
C code in a question tagged c and cpp is misdetected as markdown.What?!typedef float pnt[3];void count(pnt const * pnts, const int n, unsigned cnt[8]) { for(int i=0; i<8; ++i) cnt[i] = 0; for(int...
View ArticleAnswer by noslenkwah for Goodbye, Prettify. Hello highlight.js! Swapping out...
I ran across the following code in this question.You can see the coloring is not formatted properly:<form method="post"><div class="form-group"><label...
View ArticleAnswer by Erwin Brandstetter for Goodbye, Prettify. Hello highlight.js!...
More formatting issues with SQLhightligh.js has proper support for PostgreSQL and PL/pgSQL.Still, my code is messed up on a regular basis. Like in this example (I ended up with a workaround using...
View ArticleAnswer by JW0914 for Goodbye, Prettify. Hello highlight.js! Swapping out our...
status-bydesignPowerShell and batch syntax highlighting is off all around and neither works correctly (left: Stack Exchange; right: Microsoft's Visual Studio Code)It appears batch and PowerShell syntax...
View ArticleAnswer by Anis Ladram for Goodbye, Prettify. Hello highlight.js! Swapping out...
Bash highlighting seems to be broken.echo "$(true)"echo $(true)As you can see, the command in the first subshell is not highlighted, presumably due to the quotes, but the second is (no quotes). Both...
View ArticleAnswer by Ecuador for Goodbye, Prettify. Hello highlight.js! Swapping out our...
status-completedNo Objective-C highlightingI commented to say how disappointing highlighting of Objective C is, but I was told to open a bug as it is not an issue of Highlight.js, but of Stack Overflow...
View ArticleAnswer by William Robertson for Goodbye, Prettify. Hello highlight.js!...
There is something a bit odd with PL/SQL (or SQL - I'm not sure whether PL/SQL is actually supported. It seems to be sadly unpopular with syntax highlighting plugins.)A quoted SQL statement seems to...
View ArticleAnswer by CertainPerformance for Goodbye, Prettify. Hello highlight.js!...
bugQuestions which do not have any tags associated with any languages do not get their code blocks automatically highlighted at all. Examples:Preloader is not working on Angular universal SSR appHow to...
View ArticleAnswer by Peter Duniho for Goodbye, Prettify. Hello highlight.js! Swapping...
Per advice at How does the highlight.js change affect Stack Overflow specifically?, I am copying my original bug report to this Q&A.Because I first noticed this behavior coincidental with an update...
View ArticleAnswer by Antti Haapala for Goodbye, Prettify. Hello highlight.js! Swapping...
C is not supportedThere is no C syntax highlighter in highlight.js. highlight.js uses the C++ highlighter for C, and it is a nightmare. It actually makes code harder to read than not having any...
View ArticleAnswer by Rmano for Goodbye, Prettify. Hello highlight.js! Swapping out our...
LaTeX highlight in TikZ environments is wrong.Look at https://tex.stackexchange.com/a/564540/38080:It seems that a newline in a macro arguments desynchronize the parser...Thanks!PS: could be...
View ArticleAnswer by Patrick Artner for Goodbye, Prettify. Hello highlight.js! Swapping...
Display bug in an answer to a post with python - which should get it Python-like coloring. A string is colored in two different ways:
View ArticleAnswer by Larnu for Goodbye, Prettify. Hello highlight.js! Swapping out our...
Syntax highlighting isn't always present in the entire code blockThis is an odd one. I've noticed this in a few languages, not just SQL, but sometimes the highlighting just doesn't work on the entire...
View ArticleAnswer by 1201ProgramAlarm for Goodbye, Prettify. Hello highlight.js!...
bugI noticed that on this question the syntax highlighting for some C++ code stops partway thru.In particular, it gets tripped up by this bit of code:template <class T>ostream&...
View ArticleAnswer by Dingus for Goodbye, Prettify. Hello highlight.js! Swapping out our...
Ruby numeric literals are not highlighted as expectedIn Ruby, float, rational, and complex literals render like so:3.5e42r6iThe expected behaviour is for the entire literal to be highlighted. For...
View ArticleAnswer by camickr for Goodbye, Prettify. Hello highlight.js! Swapping out our...
Java highlighting differenceI don't know what the exact rules was, but in the old highlighting any word in the Java code starting with a capital letter was highlighted.I found this a nice feature since...
View ArticleAnswer by David Carlisle for Goodbye, Prettify. Hello highlight.js! Swapping...
In LaTeX code, @ should be treated as a letter. There are any number of examples on tex.stackexchange, butUndefined control sequence on \beamer@leftmargin...
View ArticleAnswer by Matthew FitzGerald-Chamberlain for Goodbye, Prettify. Hello...
status-bydesignC# Stack Trace in Log File Formatting is WrongSee What does "Keyword not supported: 'endpoint'" mean and how does it relate to the "messaging" connectionstring?This is a log file that...
View ArticleAnswer by Larnu for Goodbye, Prettify. Hello highlight.js! Swapping out our...
status-bydesignWill the default code markdown be changed to code fences?Currently if you click the code ({}) icon in the editor, then the selected text is still indented (or unindented) by 4 white...
View ArticleAnswer by kriegaex for Goodbye, Prettify. Hello highlight.js! Swapping out...
status-completedThere are two problems with Groovy syntax highlighting:The old syntax was not automatically converted to the new syntax, i.e. thousands of Groovy-related questions and answers lost...
View ArticleAnswer by GSerg for Goodbye, Prettify. Hello highlight.js! Swapping out our...
status-completedVisual Basic code is no longer highlightedThe error in the console is:Could not find the language 'vb', did you forget to load/include a language module?Falling back to no-highlight...
View ArticleAnswer by user312421 for Goodbye, Prettify. Hello highlight.js! Swapping out...
supportWhat are we supposed to do if syntax highlighting doesn't turn on at all?In a question with a very simple code block, with only the c# tag, this is what I see:For the block of...
View ArticleAnswer by Larnu for Goodbye, Prettify. Hello highlight.js! Swapping out our...
SQL Formatting issuesAs I almost exclusively stick to SQL Server related tags, I've picked up on a few issues/features with the sql language formatting.Hash character incorrectly interpreted as comment...
View ArticleAnswer by Lionel Rowe for Goodbye, Prettify. Hello highlight.js! Swapping out...
Will lazy loading of syntaxes be supported?This would allow for syntax highlighting of less common languages that don't need to be eager-loaded on every page load.Here's a proof-of-concept that doubles...
View ArticleAnswer by Josh Goebel for Goodbye, Prettify. Hello highlight.js! Swapping out...
Current maintainer of Highlight.js here, though I'd add a few quick comments.highlight.js tends to not highlight punctuation, which makes it a bit less colorful than other highlighters. This is...
View ArticleAnswer by Peter Cordes for Goodbye, Prettify. Hello highlight.js! Swapping...
Apparently asm / assembly has never(?) been supported as a syntax-highlighting language, and the somewhat decent highlighting we got in the past was from auto-detection (presumably as some other...
View ArticleAnswer by b3m2a1 for Goodbye, Prettify. Hello highlight.js! Swapping out our...
What to do if highlight.js supports a language but Stack Exchange doesn't?There's an entire Mathematica StackExchange, and so Mathematica syntax highlight is clearly very important to us. But when I...
View ArticleAnswer by Bohemian for Goodbye, Prettify. Hello highlight.js! Swapping out...
Does highlight.js support emphasis in blocks formatted as "code" (ie indented 4 spaces)?Paraphrasing an MSE question:In-code highlighting (anything will do), would be a great way to emphasise the...
View ArticleAnswer by Arnauld for Goodbye, Prettify. Hello highlight.js! Swapping out our...
I've just tried the following piece of JavaScript code (from this answer of mine in Code Golf) because Google Prettify was not parsing the regular expression followed by an inline comment correctly....
View ArticleAnswer by Sonic the Anonymous Hedgehog for Goodbye, Prettify. Hello...
bugstatus-bydesign<!-- language-all: lang-none --> hint doesn't seem to work anymoreThis post has a <!-- language-all: lang-none --> hint at the top of the post to prevent all the code...
View ArticleAnswer by Sonic the Anonymous Hedgehog for Goodbye, Prettify. Hello...
Will the <!-- language: [language] --> hint be disappearing?Back when SE was switching to CommonMark, we were told that the old <!-- language: [language] --> syntax had been deprecated and...
View ArticleAnswer by user361230 for Goodbye, Prettify. Hello highlight.js! Swapping out...
We have been waiting for Verilog and SystemVerilog (SV) highlighting for a long time. Apparently we will have Verilog support with highlight.js, but SV will continue to be unsupported. Still much...
View ArticleAnswer by jtbandes for Goodbye, Prettify. Hello highlight.js! Swapping out...
😄 Thanks for doing this! I'm happy about this outcome, as I was a major proponent of switching to highlight.js back in 2016.Great! …but what changed?To satisfy my own curiosity, I'm wondering if you...
View ArticleAnswer by TRiG for Goodbye, Prettify. Hello highlight.js! Swapping out our...
There has been times that I've turned off code highlighting with <!-- language: lang-none --> because Prettify was getting it wrong, and no highlighting is better than wrong highlighting. (The...
View ArticleAnswer by Olivier Dulac for Goodbye, Prettify. Hello highlight.js! Swapping...
I'd like to say that I appreciate this post.It is clear, very informative, very detailled, and to me shows that person's concern for the community.Of course, there will always be different opinion on...
View ArticleAnswer by Jerry Coffin for Goodbye, Prettify. Hello highlight.js! Swapping...
I found it rather frustrating that I couldn't easily see how the before/after pictures differed, so I did a bit of cutting and pasting so I could look at the before/after side by side to compare them...
View ArticleAnswer by Sonic the Anonymous Hedgehog for Goodbye, Prettify. Hello...
Can Stack Exchange please update to newer versions of Highlight.js on a regular cycle, rather than only on request?As I said in my prior post reporting Google's discontinuation of Prettify, the process...
View ArticleGoodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter
Update 2020-09-24This is now live network-wide.UpdateThis is now live on Meta Stack Exchange and Meta Stack Overflow. Any bugs and feedback can be posted here as an answer.I’m Ben and I’m a dev on the...
View Article
More Pages to Explore .....