FAQ
-
How do I create a code snippet?
- Go to Components → Easy Code Highlighter → Code Snippets, click "New", fill in the form, and save. Copy the generated shortcode.
-
How do I use the shortcode?
- Paste [codehighlight id=X] anywhere in your content (articles, modules, custom HTML). Replace X with your snippet ID.
-
Where can I find the snippet ID?
- The ID is shown in the Code Snippets list view and in the shortcode column. It's automatically assigned when you create a snippet.
-
Can I use multiple shortcodes on the same page?
- Yes, you can use multiple shortcodes on the same page to display different code snippets.
-
How do I highlight specific lines?
- In the code snippet form, enter line numbers in the "Highlight Lines" field (e.g., "1,3,5" or "10-15").
-
Can I change the theme?
- Yes, go to Extensions → Plugins → System - Easy Code Highlighter and select a theme from the dropdown.
-
Why isn't my code displaying?
- Check that the plugin is enabled, verify the shortcode syntax is correct, ensure you're viewing the page (not editing), and check that the snippet is published.
-
Can I disable the copy button?
- Yes, go to plugin settings and disable the "Copy Button" option.