WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
Added feature (2 posts)

  1. dovoto
    Member
    Posted 1 year ago #

    I updated the plugin to accept:

    lines="10-20"

    To allow for me to specify only parts of a file to display. Is this a feature others need?

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. dovoto
    Member
    Posted 1 year ago #

    I also added a feature to pull a named block of code out of a file based on a tag.

    Here is an example use case:
    http://answers.drunkencoders.com/

    Usage:
    <pre url="my_source_repo" block="name" >

    code not shown...
    code not shown...

    comment with the string "{b=name}"

    code shown ..
    code shown ..

    comment with the string "{b=name}"

    code not shown ..

    This is very useful for me as it keeps my tutorial source code up to date (all i have to do is update them from source control and the tutorial code is valid).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.