Syntax Highlighting

Begonnen von RichardCZ, 26 März 2020, 14:18:40

Vorheriges Thema - Nächstes Thema

RichardCZ

Die Simple Machines Forumssoftware ermöglicht es wohl eingebetteten Code in Farbe und bunt darzustellen: https://highlightjs.org/static/demo/

der "code=perl" tag funktioniert, vermutlich muss man irgendwo irgendein Plugin aktivieren und dann könnte das hier farbenfroh aufleuchten:

Code (perl) Auswählen
sub WUup_Set {
    my ( $hash, $name, $cmd, @args ) = @_;

    return "\"set $name\" needs at least one argument" unless ( defined($cmd) );

    if ( $cmd eq "update" ) {
        WUup_stateRequestTimer($hash);
    }
    else {
        return "Unknown argument $cmd, choose one of update:noArg";
    }
}


Das würde ich mir sehr für die Perl Ecke wünschen.
Witty House Infrastructure Processor (WHIP) is a modern and
comprehensive full-stack smart home framework for the 21st century.