-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add syntax highlighting to chapter docs #12
Comments
Can you try a bit of perl pie perl -p -i -e 's/^`{3,4}[\s]$/```c/' chapters/ ^ start of line http://perldoc.perl.org/perlre.html#Regular-Expressions On 11/12/15 11:26 PM, Neelabh Gupta wrote:
|
The chapter exercise documentation (in the
chapters/
directory) is written in markdown, and is shown in the "challenge doc" pane (the upper-right pane) in the sys playground.sys supports GitHub Flavored Markdown (GFM), which supports syntax highlighting for source code.
The current challenge docs do not have syntax highlighting because the code blocks do not have any language identifier. For example, this file has the following fenced code block:
which is rendered as
This can be syntax-highlighted by using the "c" language identifier:
which will render as
which is a much better appearance.
The task is to go through current chapters and modify them to use syntax highlighting, and write a document directing future documentation to be written this way.
The text was updated successfully, but these errors were encountered: