I use Syntax Highlighter by Alex Gorbatchev in my blog on Blogger. It perfectly works with all the programming languages I use. Recently I needed to highlight Windows Command Prompt commands and I found only brush: powershell option for the <pre> tag to do it. Unfortunately, it does not work exactly as I need.

I have theses commands:

taskkill /IM explorer.exe /F
cd /d %userprofile%\AppData\Local
del IconCache.db /a
shutdown /r /f /t 00

When I use <pre class="brush: powershell; gutter: false">CODE_GOES_HERE</pre>, it highlights cd, del and /r (not a command at all) but does not highlight taskkill and shutdown as I expect it to.

Is there any workaround to solve this problem and highlight Windows Command Prompt commands correctly or should I use another syntax highlighter in my blog?

1 Answer 1


Here is a list of different brushes that you can add to the script to support several other languages, among which are batch files (bat, cmd, batch):


  • Thanks! As I understood it is only possible when you host Syntax Highlighter on your own server, right? Oct 22, 2012 at 4:28
  • Not necessarily, you can include the brushes code as part of your template and that should do the trick. Of course, it will make your template bigger for every page, even when you don't use it. Check here for some guidance on how to do that: geektalkin.blogspot.com/2009/11/…
    – Alpha
    Oct 22, 2012 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.