WordPress.org

Forums

WP-Syntax
HTML5 highlighting? (2 posts)

  1. jimaek
    Member
    Posted 3 years ago #

    1. Is there any way to do it now?
    2. Are you going to add it in the next versions?

    http://wordpress.org/extend/plugins/wp-syntax/

  2. Chimo
    Member
    Posted 3 years ago #

    Hi,
    Since HTML4 and HTML5 share a lot of elements/attributes, there is partial highlighting for HTML5 in version 0.9.12.

    If you need complete HTML5 highlight support, you can easily update GeSHi to version 1.0.8.10 by downloading it from here: http://qbnz.com/highlighter/ and replacing the "geshi" folder located in "/wp-content/plugins/wp-syntax" with the one you downloaded from above.

    The "lang" attribute you'll want to use is "html5":
    <pre lang="html5">HTML5 code here.</pre>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Syntax
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags