WP Manifestindependent plugin directory
manifest / editor / rrze-typesettings

RRZE Typesettings

WordPress-Plugin: Shortcode und Gutenberg Block, für das Highlightening von Code

by RRZE Webteam · github.com/rrze-webteam/rrze-typesettings · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/rrze-webteam/rrze-typesettings/archive/refs/heads/main.zip

Plugin to display code highlighting.

RRZE-Typesettings

WordPress-Plugin: Shortcode und Gutenberg Block, für das Highlightening von Code

Verwendung als Block

Wählen Sie dazu den Block "Code Highlighter RRZE" aus.

Verwendung als Shortcode

[highlight-code]
...
[/highlight-code]

[highlight-code lang="php"]
...
[/highlight-code]

[highlight-code lang="python" theme="dark"]
...
[/highlight-code]

[highlight-code lang="sql" linenumbers="false"]
...
[/highlight-code]

[highlight-code copy="false"]
...
[/highlight-code]

Alle Attribute des Shortcodes

[highlight-code 
lang=".."
theme=".."
linenumbers=".."
copy=".."
]

Alle Attribute sind optional.

Default

Zeilennummern werden angezeigt. Javascript ist vorausgewählt. Button "Copy to clipboard" wird angezeigt.

Unterstützte Sprachen:

Sprache => Wert für "lang":

C => c,
C++ => cpp,
C# => csharp,
CSS => css,
HTML => markup,
Java => java,
JavaScript => javascript,
JSON => json,
Perl => perl,
PHP => php,
Python => python,
React => jsx,
Regex => regex,
SASS => sass,
SQL => sql,
XML => markup

Unterstützte Themes:

default
light
dark
okaidia