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

Backticks within backticked code #179

Closed
bevacqua opened this issue Jun 19, 2013 · 3 comments
Closed

Backticks within backticked code #179

bevacqua opened this issue Jun 19, 2013 · 3 comments

Comments

@bevacqua
Copy link

The backtick syntax, when embedded in a backticked portion of code, will end at the first occurrence of ```

```no-highlight
 ```javascript
 var s = "JavaScript syntax highlighting";
 alert(s);
 ```

 ```python
 s = "Python syntax highlighting"
 print s
 ```

 ```
 No language indicated, so no syntax highlighting. 
 But let's throw in a <b>tag</b>.
 ```

    var foo = 1; // no syntax highlighting in indented blocks either.
```

Shouldn't it check for indentation?

@jfhenriques
Copy link

+1

@notslang
Copy link

you just wrap your code in sets of 4 backticks like so:

````no-highlight
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```

```python
s = "Python syntax highlighting"
print s
```

```
No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.
```

var foo = 1; // no syntax highlighting in indented blocks either.
````

...but that's a good idea to check for indentation

@joshbruce
Copy link
Member

Closing, see #956

  1. Not sure I agree.
  2. Stale.

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

4 participants