-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes: - add support for a keyword argument `ansicolor` in the `@example`/`@repl` block - for per-block setting to overide the default setting - the default uses the `:color` property of `stdout` (determined by `--color`) - use the `ansicolor` option for the `:color` property of output - translate "text/plain" output with ANSI escape codes in `HTMLWriter` - add styles for ANSI colors to the default themes
- Loading branch information
Showing
13 changed files
with
521 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
|
||
$ansi-black: #111 !default; | ||
$ansi-red: #944 !default; | ||
$ansi-green: #073 !default; | ||
$ansi-yellow: #870 !default; | ||
$ansi-blue: #15a !default; | ||
$ansi-magenta:#94a !default; | ||
$ansi-cyan: #08a !default; | ||
$ansi-white: #ddd !default; | ||
|
||
$ansi-light-black: #888 !default; | ||
$ansi-light-red: #d57 !default; | ||
$ansi-light-green: #2a5 !default; | ||
$ansi-light-yellow: #d94 !default; | ||
$ansi-light-blue: #08d !default; | ||
$ansi-light-magenta:#b8d !default; | ||
$ansi-light-cyan: #0bc !default; | ||
$ansi-light-white: #eee !default; | ||
|
||
span { | ||
&.sgr1 { | ||
font-weight: bolder; | ||
} | ||
|
||
&.sgr2 { | ||
font-weight: lighter; | ||
} | ||
|
||
&.sgr3 { | ||
font-style: italic; | ||
} | ||
|
||
&.sgr4 { | ||
text-decoration: underline; | ||
} | ||
|
||
&.sgr7 { | ||
color: $body-background-color; | ||
background-color: $text; | ||
} | ||
|
||
&.sgr8 { | ||
color: transparent; | ||
|
||
span { | ||
color: transparent; | ||
} | ||
} | ||
|
||
&.sgr9 { | ||
text-decoration: line-through; | ||
} | ||
|
||
&.sgr30 { | ||
color: $ansi-black | ||
} | ||
|
||
&.sgr31 { | ||
color: $ansi-red | ||
} | ||
|
||
&.sgr32 { | ||
color: $ansi-green | ||
} | ||
|
||
&.sgr33 { | ||
color: $ansi-yellow; | ||
} | ||
|
||
&.sgr34 { | ||
color: $ansi-blue; | ||
} | ||
|
||
&.sgr35 { | ||
color: $ansi-magenta; | ||
} | ||
|
||
&.sgr36 { | ||
color: $ansi-cyan; | ||
} | ||
|
||
&.sgr37 { | ||
color: $ansi-white; | ||
} | ||
|
||
&.sgr40 { | ||
background-color: $ansi-black; | ||
} | ||
|
||
&.sgr41 { | ||
background-color: $ansi-red; | ||
} | ||
|
||
&.sgr42 { | ||
background-color: $ansi-green; | ||
} | ||
|
||
&.sgr43 { | ||
background-color: $ansi-yellow; | ||
} | ||
|
||
&.sgr44 { | ||
background-color: $ansi-blue; | ||
} | ||
|
||
&.sgr45 { | ||
background-color: $ansi-magenta; | ||
} | ||
|
||
&.sgr46 { | ||
background-color: $ansi-cyan; | ||
} | ||
|
||
&.sgr47 { | ||
background-color: $ansi-white; | ||
} | ||
|
||
&.sgr90 { | ||
color: $ansi-light-black; | ||
} | ||
|
||
&.sgr91 { | ||
color: $ansi-light-red; | ||
} | ||
|
||
&.sgr92 { | ||
color: $ansi-light-green; | ||
} | ||
|
||
&.sgr93 { | ||
color: $ansi-light-yellow; | ||
} | ||
|
||
&.sgr94 { | ||
color: $ansi-light-blue; | ||
} | ||
|
||
&.sgr95 { | ||
color: $ansi-light-magenta; | ||
} | ||
|
||
&.sgr96 { | ||
color: $ansi-light-cyan | ||
} | ||
|
||
&.sgr97 { | ||
color: $ansi-light-white; | ||
} | ||
|
||
&.sgr100 { | ||
background-color: $ansi-light-black; | ||
} | ||
|
||
&.sgr101 { | ||
background-color: $ansi-light-red; | ||
} | ||
|
||
&.sgr102 { | ||
background-color: $ansi-light-green; | ||
} | ||
|
||
&.sgr103 { | ||
background-color: $ansi-light-yellow; | ||
} | ||
|
||
&.sgr104 { | ||
background-color: $ansi-light-blue; | ||
} | ||
|
||
&.sgr105 { | ||
background-color: $ansi-light-magenta; | ||
} | ||
|
||
&.sgr106 { | ||
background-color: $ansi-light-cyan; | ||
} | ||
|
||
&.sgr107 { | ||
background-color: $ansi-light-white; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.