Hi Gene,
thank you for your reply, also if my post was meant to be only
an exercise to apply color to lfs and expanded tabs in listing
files and not to apply it to an editor.
However your comment has directed me to consider more
deeply other editors (I use kwrite).
I am inclined to change to vim bu
qwweeeit wrote:
> Hi all,
> in a previous post I asked help for colorizing expanded tab.
> I wanted to list text files showing in colors LFs and the expanded
> tabs.
> I hoped to use only bash but, being impossible, I reverted to Python.
> I programmed a very short script .
> Here it is (... and I
Hi all,
in a previous post I asked help for colorizing expanded tab.
I wanted to list text files showing in colors LFs and the expanded
tabs.
I hoped to use only bash but, being impossible, I reverted to Python.
I programmed a very short script .
Here it is (... and I ask comments or critics):
# f
Hi Peter,
thank you for your replay, but I was looking for a very
short routine. I even had in mind to use Linux & bash
(only one command line).
It seems that tab expansion, made by print, prevents
the working of the escape sequences for colors.
In fact, if you replace tab with a given number of sp
qwweeeit wrote:
> Hi all,
> from a string embedding tabs I want to colorize them when expanded:
>
> # Starting from a string:
> a= '1234\t5678\t\t90\nqwerty\nasdfg'
> # which embeds both tabs and lfs
>
> # printing it you obtain:
> print a
> # 1234567890
> # qwerty
> # asdfg
>
>
Hi all,
from a string embedding tabs I want to colorize them when expanded:
# Starting from a string:
a= '1234\t5678\t\t90\nqwerty\nasdfg'
# which embeds both tabs and lfs
# printing it you obtain:
print a
# 1234567890
# qwerty
# asdfg
# print automatically expands tabs and inter