Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Support syntax highlighting in code blocks #67

@frankiejarrett

Description

@frankiejarrett

AFAIK the only way to achieve a code block in readme.txt is to use the <pre> tag.

It would be nice to add support for a lang attribute so that syntax highlighting can be added when converting to markdown.

TXT

<pre lang="php">
function foo() {
    $bar = 'baz';
}
</pre>

Markdown

function foo() {
    $bar = 'baz';
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions