scrivo / highlight.php

A port of highlight.js by Ivan Sagalaev to PHP
BSD 3-Clause "New" or "Revised" License
695 stars 45 forks source link

Which language can I use to highlight the command line? #11

Closed kk8686 closed 7 years ago

kk8686 commented 7 years ago

I want to highlint the command and params such as the fllowing contents

php test.php
php -r "echo 123"
mkdir test-dir
rm -rf test-dir
...more commands

I can't find it json in the path of "scrivo\highlight.php\Highlight\languages"

cebe commented 7 years ago

I want to highlint the command and params such as the fllowing contents

you can use bash,sh or zsh. https://github.com/scrivo/highlight.php/blob/master/Highlight/languages/bash.json

kk8686 commented 7 years ago

@cebe thanks

samdark commented 7 years ago

If it's solved, close the issue please.