WordPress.org

Forums

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

  1. cdonts
    Member
    Posted 1 year 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 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.