Code Highlighting
Syntax highlighting for code snippets
Overview
Gconv Prune provides built-in syntax highlighting for code snippets across multiple programming languages. This feature helps make your code more readable and easier to understand.
Supported Languages
We support syntax highlighting for a wide range of programming languages, including:
- JavaScript/TypeScript
- Python
- Java
- C/C++
- HTML/CSS
- And many more...
Usage
To use code highlighting in your documentation or comments, simply wrap your code in triple backticks and specify the language:
```javascript
// Example JavaScript code
function greet(name) {
console.log(`Hello, ${name}!`);
}
```
This will render as:
// Example JavaScript code
function greet(name) {
console.log(`Hello, ${name}!`);
}
Configuration
Code highlighting is enabled by default and uses a theme that matches your current color scheme. The theme automatically switches between light and dark modes based on your system preferences.
Additional Features
- Line numbers
- Copy code button
- Language detection
- Custom theme support
Need Help?
If you have any questions about code highlighting or encounter any issues, please refer to our support documentation or contact our support team.