We've rolled out some improvements to our formatting engine today, and wanted to let everyone know how to take advantage of them.
For a full specification of formatting on Brilliant, you can review the full formatting guide.
The two new things you'll probably want to know about:
It is now possible to use tables in problems and notes on Brilliant.
Code Snippets with Syntax Highlighting
There is also a new method for code blocks. Previously, it was necessary to use four spaces before any line of code, like this:
1 2 3
1 2 3
However, we have a new method, which produces the same output and is easier to work with. Now you may simple add three backticks ( ` ) on the lines before and after your code, and you'll get the same result:
``` print "Hello World!" for x in range(5): print x ```
1 2 3
In addition, the new system allows syntax highlighting for C, Python, and Java code (and many others). Just add the language name in lowercase (
cpp instead of
```python #A comment print "Hello World!" for x in range(5): print x ```
1 2 3 4
We're excited about these improvements and hope they'll be helpful to you.