Thank you for deciding to share your article with us. We know nothing good comes easy and that is why we have decided to assist you in writing very clean article filled with elegant code snippets.
This guide will put you through writing articles which includes code snippets in any language and format. To begin, you must have selected a type of article to write which is extensively described in this post.
To apply syntax highlighting, open the code view by clicking on the code logo which is shown in the image below
When the code view is opened, the general syntax to get your code to be grabbed by our machine and highlight it is
The language inside the code is the type of code you’re writing. it can be any of the following
[generic] [css] [html] [java] [js] [json] [md] [php] [python] [ruby] [msdos] [shell] [sql] [xml] [c] [cpp] [csharp] [rust] [lua] [matlab] [nsis] [diff] [vhdl] [avrasm] [asm] [kotlin] [squirrel] [ini] [raw] [no-highlight] without the braces [ ];
When you have initialised it in the code view, that’s all, when you click the code icon again to leave the code view, you should see a white background and any code written inside the white background would be highlighted.
While writing your code, the enter key should be entered by pressing
shift+enter else, the line would break vigorously and exit the white background.
You can write as many lines of code as you can and when you’re done, you can use the
enter key to escape the white background and continue on your article.
Your code should look like this when you’re done writing.