EasyJob icon indicating copy to clipboard operation
EasyJob copied to clipboard

Color tags

Open ITMonkey78 opened this issue 3 years ago • 1 comments

Great tool. I've already found a use for it within our small team to organize our scripts The support of color output however i feel could be better implemented.

I don't really want to have to re-write all my scripts to add in your color 'tags', especially if the same scripts might be ran outside of your tool in regular PS consoles which would break the color output of a normal write-host. From a quick look through your source code it seems like you're parsing the scripts looking for your new tags and converting it to html spans. Would it not be easier to parse any write-host commands in the scripts for the -foregroundcolor or -backgroundcolor parameters and if they're found your code can convert the colors into your html span tags for the output?

ITMonkey78 avatar Dec 24 '21 09:12 ITMonkey78

Dear ITMonkey78,

Thanks for the suggestion. I actually thought about that, but don`t know how to do that. I would be thankful if you provide me methods\ways\code\or whatever solution of how I can achieve that.

akshinmustafayev avatar Dec 24 '21 13:12 akshinmustafayev