Easy Code Highlighter

Troubleshooting

Version: 2.0

Troubleshooting

  • Code Not Displaying: Ensure the plugin is enabled, verify shortcode syntax is correct ([codehighlight id=X]), check that you're viewing the page (not editing), verify the snippet is published, and check browser console for JavaScript errors.
  • Shortcode Not Working: Check that you're using the exact syntax [codehighlight id=X], ensure you're in HTML view if using WYSIWYG editor, verify System Plugin is enabled, check for typos in the shortcode, and ensure the snippet ID exists.
  • Syntax Highlighting Not Working: Verify the language is selected correctly, check that Prism.js assets are loading (check browser console), ensure theme is selected in plugin settings, and verify no JavaScript errors.
  • Copy Button Not Working: Check browser console for errors, ensure copy button is enabled in plugin settings, verify JavaScript is enabled in browser, and check for conflicts with other extensions.
  • Styling Issues: Clear Joomla cache, check for CSS conflicts with your template, verify Prism.js CSS is loading, and check browser console for CSS errors.
  • Line Numbers Not Showing: Ensure "Gutter" option is enabled in plugin settings, check that the theme supports line numbers, and verify no CSS is hiding the line numbers.
  • Highlight Lines Not Working: Verify line numbers are entered correctly (e.g., "1,3,5" or "10-15"), check that the line numbers exist in your code, and ensure the format is correct.
  • Multiple Snippets: All snippets on the same page use the same plugin settings (theme, gutter, copy button). Each snippet can have its own language and highlight lines.