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

Ability to define file name in code listing snippet #468

Open
szpak opened this issue May 3, 2022 · 0 comments
Open

Ability to define file name in code listing snippet #468

szpak opened this issue May 3, 2022 · 0 comments

Comments

@szpak
Copy link
Contributor

szpak commented May 3, 2022

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
    ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant