Skip to content

Commit 61cb8fd

Browse files
authored
Merge pull request #25 from adhocore/develop
docs: add colors() docs
2 parents 406fa1a + b8cd110 commit 61cb8fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ $writer->boldGreen('It is bold green'); // Same as above
265265
$writer->comment('This is grayish comment', true); // True indicates append EOL character.
266266
$writer->bgPurpleBold('This is white on purple background');
267267

268+
// Many colors with one single call: wrap text with tags `<method>` and `</end>`
269+
// For NL/EOL just use `<eol>` or `</eol>` or `<eol/>`
270+
$writer->colors('<red>This is red</end><eol><bgGreen>This has bg Green</end>');
271+
268272
// All writes are forwarded to STDOUT
269273
// But if you specify error, then to STDERR
270274
$writer->errorBold('This is error');

0 commit comments

Comments
 (0)