Missing syntax highlighting for various guide articles
See original GitHub issueDescribe your problem and how to reproduce it: Due to unsupported languages being used for code blocks, a lot of guide articles are not getting the appropriate highlighting. This isn’t a problem with content, just style - unfortunately they don’t look as good as they could.
One way to see which languages are not working correctly is to build the client. This will produce a bunch of warnings, one for each language it doesn’t recognize:
warning unable to find prism language ‘sh’ for highlighting. applying generic code block warning unable to find prism language ‘terminal’ for highlighting. applying generic code block warning unable to find prism language ‘node’ for highlighting. applying generic code block warning unable to find prism language ‘output’ for highlighting. applying generic code block warning unable to find prism language ‘cs’ for highlighting. applying generic code block warning unable to find prism language ‘c++’ for highlighting. applying generic code block warning unable to find prism language ‘solidity’ for highlighting. applying generic code block warning unable to find prism language ‘#include<math.h>’ for highlighting. applying generic code block warning unable to find prism language ‘#include <math.h>’ for highlighting. applying generic code block warning unable to find prism language ‘c#’ for highlighting. applying generic code block warning unable to find prism language ‘cpp//empty operation in queue’ for highlighting. applying generic code block warning unable to find prism language ‘xaml’ for highlighting. applying generic code block warning unable to find prism language ‘code’ for highlighting. applying generic code block warning unable to find prism language ‘javasctipt’ for highlighting. applying generic code block warning unable to find prism language ‘syntax’ for highlighting. applying generic code block warning unable to find prism language ‘unix’ for highlighting. applying generic code block warning unable to find prism language ‘linux’ for highlighting. applying generic code block warning unable to find prism language ‘<!doctype html>’ for highlighting. applying generic code block warning unable to find prism language ‘console’ for highlighting. applying generic code block warning unable to find prism language ‘some examples of it are:’ for highlighting. applying generic code block warning unable to find prism language ‘select query’ for highlighting. applying generic code block warning unable to find prism language ‘java 8’ for highlighting. applying generic code block warning unable to find prism language ‘algorithm’ for highlighting. applying generic code block warning unable to find prism language ‘txt’ for highlighting. applying generic code block warning unable to find prism language ‘swift4’ for highlighting. applying generic code block warning unable to find prism language ‘react.js’ for highlighting. applying generic code block warning unable to find prism language ‘javascriot’ for highlighting. applying generic code block warning unable to find prism language ‘let quotesample = “the five boxing wizards jump quickly.”;’ for highlighting. applying generic code block warning unable to find prism language ‘javacsript’ for highlighting. applying generic code block warning unable to find prism language ‘c++ -’ for highlighting. applying generic code block
These all come from code blocks with languages that are not supported by Prism or are referred to differently. For example, C++ is supported, but Prism only works if you use cpp
.
Add a Link to the page with the problem: This is a c++ example. It currently looks like this: It was probably intended to look like this:
Tell us about your browser and operating system:
- Browser Name: Chrome
- Browser Version: 74.0.3729.131
- Operating System: Ubuntu
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
@moT01 See this comment. I think we can close this issue.
Fixed by #36318