Skip to content

Commit e4fbd42

Browse files
authored
Merge pull request #77 from kirtangajjar/patch-1
Improved formatting for colors in README.md
2 parents 2d39548 + b0f9b02 commit e4fbd42

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

src/DB_Command.php

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -841,35 +841,38 @@ public function prefix() {
841841
* : Percent color code to use for the match (unless both before and after context are 0, when no color code is used). For a list of available percent color codes, see below. Default '%3%k' (black on a mustard background).
842842
*
843843
* The percent color codes available are:
844-
* '%y' Yellow (dark) (mustard)
845-
* '%g' Green (dark)
846-
* '%b' Blue (dark)
847-
* '%r' Red (dark)
848-
* '%m' Magenta (dark)
849-
* '%c' Cyan (dark)
850-
* '%w' White (dark) (light gray)
851-
* '%k' Black
852-
* '%Y' Yellow (bright)
853-
* '%G' Green (bright)
854-
* '%B' Blue (bright)
855-
* '%R' Red (bright)
856-
* '%M' Magenta (bright)
857-
* '%C' Cyan (bright)
858-
* '%W' White
859-
* '%K' Black (bright) (dark gray)
860-
* '%3' Yellow background (dark) (mustard)
861-
* '%2' Green background (dark)
862-
* '%4' Blue background (dark)
863-
* '%1' Red background (dark)
864-
* '%5' Magenta background (dark)
865-
* '%6' Cyan background (dark)
866-
* '%7' White background (dark) (light gray)
867-
* '%0' Black background
868-
* '%8' Reverse
869-
* '%U' Underline
870-
* '%F' Blink (unlikely to work)
871-
*
872-
* They can be concatenated. For instance, the default match color of black on a mustard (dark yellow) background '%3%k' can be made black on a bright yellow background with '%Y%0%8'.
844+
*
845+
* | Code | Color
846+
* | ---- | -----
847+
* | %y | Yellow (dark) (mustard)
848+
* | %g | Green (dark)
849+
* | %b | Blue (dark)
850+
* | %r | Red (dark)
851+
* | %m | Magenta (dark)
852+
* | %c | Cyan (dark)
853+
* | %w | White (dark) (light gray)
854+
* | %k | Black
855+
* | %Y | Yellow (bright)
856+
* | %G | Green (bright)
857+
* | %B | Blue (bright)
858+
* | %R | Red (bright)
859+
* | %M | Magenta (bright)
860+
* | %C | Cyan (bright)
861+
* | %W | White
862+
* | %K | Black (bright) (dark gray)
863+
* | %3 | Yellow background (dark) (mustard)
864+
* | %2 | Green background (dark)
865+
* | %4 | Blue background (dark)
866+
* | %1 | Red background (dark)
867+
* | %5 | Magenta background (dark)
868+
* | %6 | Cyan background (dark)
869+
* | %7 | White background (dark) (light gray)
870+
* | %0 | Black background
871+
* | %8 | Reverse
872+
* | %U | Underline
873+
* | %F | Blink (unlikely to work)
874+
*
875+
* They can be concatenated. For instance, the default match color of black on a mustard (dark yellow) background `%3%k` can be made black on a bright yellow background with `%Y%0%8`.
873876
*
874877
* ## EXAMPLES
875878
*

0 commit comments

Comments
 (0)