Adds ace editor in place of textarea for post edit screen, fixes #5
Admin theme switcher in editor ( saves to user-meta )
Adds editor in read-only mode on front-end
Front-end viewer is now collapsible, fixes #10
Front-end viewer also allows line-numbers toggle, for select-all / easy copying.
Dynamic theme on front-end, will use a user's saved theme if logged in, defaults to chrome theme.
New update method, to reset taxonomy slugs if on a different version
Built-in backwards compatibility with old tax slugs ( should work out of the box )
Over 110 languages built in
Over 20 themes
New Filters
snippetcpt_default_ace_lang - Defaults to 'text', and determines the default highlighter to use either if a language isn't available, or as a fallback should I have missed a backwards compat fix.
snippetcpt_default_ace_theme - Defaults to 'ace/theme/monokai' should be an ace theme compatible string. See lib/Snippet_CPT_Setup.php::ace_theme_selector_options() for details.
snippetcpts_available_ace_themes - Default available themes array. See lib/Snippet_CPT_Setup.php::ace_theme_selector_options() for details.
snippetcpt_ace_lang_associations - The backwards compatibility array. Probably not needed, but I wanted the compatibility array to be hook-able should we need to in the future. See lib/Snippet_TaxSetup.php::get_ace_slug() for details.
Changes
New Filters
snippetcpt_default_ace_lang - Defaults to 'text', and determines the default highlighter to use either if a language isn't available, or as a fallback should I have missed a backwards compat fix.
snippetcpt_default_ace_theme - Defaults to 'ace/theme/monokai' should be an ace theme compatible string. See lib/Snippet_CPT_Setup.php::ace_theme_selector_options() for details.
snippetcpts_available_ace_themes - Default available themes array. See lib/Snippet_CPT_Setup.php::ace_theme_selector_options() for details.
snippetcpt_ace_lang_associations - The backwards compatibility array. Probably not needed, but I wanted the compatibility array to be hook-able should we need to in the future. See lib/Snippet_TaxSetup.php::get_ace_slug() for details.