Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

I should be able to colorize success, info, debug, error, etc. #2

Open
aubreypwd opened this issue Jan 16, 2023 · 1 comment
Open
Assignees

Comments

@aubreypwd
Copy link
Collaborator

Right now the e.g. </red> will reset the color of e.g. success().

@aubreypwd aubreypwd self-assigned this Jan 16, 2023
@aubreypwd
Copy link
Collaborator Author

aubreypwd commented Jan 16, 2023

Really this is more of a nesting HTML colors problem.

E.g. works:

$this->error( $this->colorize_message( "<red>Unable to create </red><white>'{$this->path}/dbs'<red>.</red>" ) );

But:

$this->error( $this->colorize_message( "<red>Unable to create <white>'{$this->path}/dbs'.</red>" ) );

...doesn't.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant