You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to shorten the output by defining the css prefix as 'ac', but realized that it will never work due to the fact that the converter has ansi_color_ hardcoded and there is no connection between the Theme and the Converter.
$converter = newAnsiToHtmlConverter();
$converter->convert('some random cli output'); // returns classes with "ansi_color" prefix$converter->getTheme()->asCss('css_prefix_for_ansi_color'); // returns styles with given prefix
Activity
rquadling commentedon May 2, 2017
By the time the content has been converted, extracting the CSS with the new prefix is impossible.
If the prefix was supplied during construction of
AnsiToHtmlConverter
, that would then be possible.I've created #16