Hi everyone:
I want to change character colour in text, but I didn`t find suitable module for this task. if you know which module can do it in a text file, not in screen ouput. please tell me, thanks
There is no such thing as color in a text file. Color only applies to the visual media used, like the monitor screen or a web browser. The file can contain the information used to display the color when the file/document is viewed, but you did not mention what file format you are working with.
Or search CPAN for "RTF" if you wanna find something different.
Plain text documents don't support text colors. The only exception would be if you're talking about ANSI escape sequences... but, in Notepad or any text editing program these will show up as block symbols and not affect the color of the text, and are only good for programs like "less" or "more" when you give them the option to have them process escape characters for display instead of escaping them. But this is such an obscure use that I don't think it needs to be discussed further. See Term::ANSIColor if curious.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.