Skip to content

Commit 0d973c6

Browse files
committed
Added stderr to bash brush for colouring error output.
1 parent 1f8f4fa commit 0d973c6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

source/jquery.syntax.brush.bash.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ Syntax.register('bash', function(brush) {
2525

2626
// Numbers
2727
brush.push(Syntax.lib.webLink);
28+
29+
brush.push({
30+
klass: 'stderr',
31+
allow: ['string', 'comment', 'constant', 'href']
32+
});
2833
});

themes/base/jquery.syntax.brush.bash.sass

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313

1414
.bash-script
1515
font-style: normal
16-
color: black
16+
color: black
17+
18+
.stderr
19+
color: red

0 commit comments

Comments
 (0)