Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting for code blocks does not work #117

Open
pmatulis opened this issue Jan 9, 2020 · 2 comments
Open

Syntax highlighting for code blocks does not work #117

pmatulis opened this issue Jan 9, 2020 · 2 comments

Comments

@pmatulis
Copy link

pmatulis commented Jan 9, 2020

This does not result in any highlighting:

```yaml
     neutron-api:                                                                
       charm: cs:xenial/neutron-api                                              
       num_units: 1                                                              
       bindings:                                                                 
         public: public-space
```

The last line is just backticks. I just don't know how to render them in this comment box.

@waldyrious
Copy link

waldyrious commented Jan 9, 2020

The last line is just backticks. I just don't know how to render them in this comment box.

You can indent the entire fenced block (including the backtick lines) with 4 spaces. That way you won't need any escaping for the backticks.

Example:

```
foobar
```

@aero31aero
Copy link
Collaborator

Hey, this is a simple bug due to us using a really old version of highlight.js. These are the only supported languages:

coffeescript
apache
http
cs
java
sql
nginx
xml
diff
javascript
bash
objectivec
markdown
json
python
ruby
cpp
css
php
perl
ini
makefile

We should start using newer hljs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants