Advertisement
Guest User

code block issue in discourse

a guest
Nov 11th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Here's a code block below showing how to do code blocks. It works
  2.  
  3. ```JavaScript
  4. function some(JavaScript, "code") {}
  5. ```
  6.  
  7. Then here's the same code block without the indent. That works too
  8.  
  9. ```JavaScript
  10. function some(JavaScript, "code") {}
  11. ```
  12.  
  13. Then here's another code block with an indent. It is not working in fact it's showing up directly inline in this paragraph for some reason
  14.  
  15. ```
  16. function some(JavaScript, "code");
  17. ```
  18.  
  19. And finally another unindented code block half works (not sure why it's not highlighted the string same as 2 blocks up
  20.  
  21. ```javascript
  22. function some(JavaScript, "code"){}
  23. ```
  24.  
  25. I can guess the second half issue is because I used `JavaScript` above and `javascript` below. I actually came here to propose and possibly implement that being case insensitive. Funny though, in my installation of discourse I get the opposite behavior. `JavaScript` has less highlighting than `javascript`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement