WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] Add the Ability to Specify Starting Line Number (3 posts)

  1. travis.hill
    Member
    Posted 2 years ago #

    Add the ability to specify the starting line number. For example, instead of always starting on line 1:

    1. <?php
    2. /* code */
    3. ?>

    add the ability to "start" on a different number:

    167. echo 'This line starts on a different number.';
    168. echo 'So does this line!';

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

  2. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Excellent suggestion, will add it.

  3. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Committing v1.2.1 as I type, which adds this ability. I've added it into the help table as well. The attribute is:

    [crayon start-line="1234"]fun code[/crayon]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic