WordPress.org

Ready to get started?Download WordPress

Forums

Enlighter - Customizable Syntax Highlighter
[resolved] Python multiline comments / triple-quote string highlighting (3 posts)

  1. cdonts
    Member
    Posted 7 months ago #

    Is this implemented? Because it seems that the enlighter doesn't recognize multiline comments like:

    def foo():
    """Function documentation here"""
    pass

    Thanks in advance.

    http://wordpress.org/plugins/enlighter/

  2. Andi Dittrich
    Member
    Plugin Author

    Posted 7 months ago #

    Dear cdonts,
    thanks for your report!
    of course..it's missing.. the python highlighting is currently based on the Ruby ones..which uses =begin my comment =end multiline comment styles.
    i've fixed this issue in version 1.9 (which will be released in the next weeks). The RC version is available here: http://static.andidittrich.de/EnlighterJS/EnlighterJS.yui.js
    just replace the old EnlighterJS.yui.js with the new one and everything should work as excepted.

    best regards, Andi

  3. cdonts
    Member
    Posted 7 months ago #

    Thanks! I'll just wait and update it from my wp desktop the next week!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.