Add Syntax Highlighter in AnsPress

By default AnsPress sanitize and preserve code in question and answer, but code button and syntax highlighter is not there by default. To get this enabled you have to follow below steps.

  1. Install Crayon Syntax Highlighter plugin and activate it. Go to http://YOUR_DOMAIN.com/wp-admin/options-general.php?page=crayon_settings.
  2. Find Decode HTML entities in code and check checkbox.
  3. Find Display the Tag Editor in any TinyMCE instances on the frontend (e.g. bbPress) check checkbox.
  4. Find Display Tag Editor settings on the frontend uncheck checkbox.
  5. And finally save the option.

After completing above steps you can see code button in ask and answer form. Let us know if need more help http://anspress.io/questions/ask/

2 Comments

  1. I don’t know why but it is not working now.

    Reply
  2. its not working for me also . am using Firebug theme . please advice

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment