Skip to content

Applying custom styles to source blocks #1486

@ggrossetie

Description

@ggrossetie

Let's say I want to write a Best Practices guide and I want to use a role on source blocks when it's not recommended. For instance:

Never enter passwords in plain text on the CLI:

[source.dont,sh]
----
$ mvn --encrypt-master-password P@ssw0rd

$ mvn --encrypt-password P@ssw0rd
----

In this case, I want to apply a custom style to highlight the fact that the reader should not do that.
Is that possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions