This guide will help you understand how to enable code highlighting on our platform. Code highlighting is a feature that makes it easier to read and understand code by using different colors for different syntax elements.
Supported Languages
We support code highlighting for a wide range of programming languages. Here are some examples:
- Python
- JavaScript
- Java
- C++
- Ruby
How to Enable Code Highlighting
To enable code highlighting, simply use the <pre><code>
tags in your Markdown content. For example:
```python
def hello_world():
print("Hello, World!")
This will render the Python code with syntax highlighting.
## Advanced Features
Our code highlighting feature also includes some advanced features, such as:
- **Line numbering**
- **Customizable color schemes**
- **Syntax highlighting for different languages**
### How to Customize Color Schemes
You can customize the color schemes by using the `highlight.js` library. Learn more about it [here](/en/docs/highlight_js).
## Useful Resources
- [Markdown Syntax Guide](/en/docs/markdown_syntax)
- [How to Write Code in Markdown](/en/docs/write_code_markdown)
