question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing syntax highlighting for various guide articles

See original GitHub issue

Describe 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: cppRocks It was probably intended to look like this: cpp

Tell us about your browser and operating system:

  • Browser Name: Chrome
  • Browser Version: 74.0.3729.131
  • Operating System: Ubuntu

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
RandellDawsoncommented, Jun 6, 2019

@moT01 See this comment. I think we can close this issue.

0reactions
ojeytonwilliamscommented, Jul 31, 2019

Fixed by #36318

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax highlighting missing for old solutions for Visual Studio ...
When opening a Visual Studio solution or CMake project that was created before Visual Studio 2022 Preview 3, C++ files are missing most...
Read more >
A case against syntax highlighting - Linus Åkesson
Syntax highlighting can show you, for example, that you are using library subroutine name as variable. And, in C, this can be a...
Read more >
Go syntax highlighting missing for structs #89288 - GitHub
The syntax highlighting for Go code is missing a lot of highlighting for structs, struct fields and other places of code related to...
Read more >
Syntax highlighting - Wikipedia
Syntax highlighting is a feature of text editors that are used for programming, scripting, or markup languages, such as HTML. The feature displays...
Read more >
Creating an Editable Textarea That Supports Syntax ...
When I was working on a project that needed an editor component for source code, I really wanted a way to have that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found