Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/codelines: Add support for numbering source code lines #51

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Dec 2, 2021

  1. Configuration menu
    Copy the full SHA
    c0832e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61b8346 View commit details
    Browse the repository at this point in the history
  3. Add support for source code lines

    We add three more properties to the `source element` of the format
    
        [source firstnumber=N, range="a-b,c-d", numbers=Bool]
    
    The `firstnumber` determines how we remap the first actual input line.
    By default this is the identity, that is, the first input line is set as
    first line in the output: `firstnumber=0`.
    
    The range specifies what parts of the code we want to print.
    It depends on the value of `firstnumber`, that is, if we use `firstnumber=10` and
    `range 11-14` it will print the 2st to 6nd (thx @aLuc) line of the input.
    By default all lines are printed.
    
    Finally, we can turn line numbers on or off.
    lkoenig-cure53 committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    9782642 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7c1c4d4 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. Configuration menu
    Copy the full SHA
    fad85c0 View commit details
    Browse the repository at this point in the history