Skip to content

Ability to define file name in code listing snippet #468

Description

@szpak

Sometimes, I would like to place 2 or 3 code snippets and it is important for people which file is which and what are the file names.

I would be good to be able to redefine a default code snippet header with a file name. For example, instead of:
image

I would like to be able to have "SpockConfig.groovy" used instead of "Groovy" in the header.

The parameter could be passed as the others, e.g.

    ```groovy {hl_lines=[6,9,17], file_name="SpockConfig.groovy"}
        //my source code
    ```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions