@Camilo – when using the $ for switching text, unfortunately the formatting will not switch with it.
Only the unformatted contents.
For switching formatted text like that, you'll need a script that is working on the Text object instead of the Contents object (speaking in ExtendScript terms). Together with the duplicate() or move() methods on the Text object.
the formatting will not switch with it.
In this line you refer to the formatting of the paragraph, in which sense?
Cannot see a formatting here different than the ch. style.
It seems greps kindergarten!!!
Many years with grep and is the first time...
Please, how to read about this? under what reference?
@Camilo – usually the GREP functionalities revolve around manipulating formatted text. Using brackets () and working with $1 to $9 for switching positions for the found junks defined by the expressions inside that brackets is the exception.
Since the introcuction of GREP Search/Replace in InDesign CS4 it never was different. That behavior should be improved by Adobe.
The term "formatting" I used applies to every kind of formatting. With or without using styles.
Even with scripting it is not that easy to do what you like to do. Especially if we consider that text could be formatted with Nested Styles and GREP Styles as well.
I removed the curly signs just to use only brackets and $1-9 and persisted the damage.
Here I will convert the text to table and transpose the columns. And will be perfect.
Well, thanks for it.
It is a beautiful solution. Chapeau.
You show that the text still maintains elements to be fixed (colour is a character style and the heart of your thread that I missed!).
Thanks. I will avoid to make tables.
It is used today? Perhaps is from the last century!
Of Course! When a guy has a good idea, we can say: "Tu es un champion !", "Wouah ! pas mal !", "Chapeau !", "Chapeau bas !", "Je vous tire mon chapeau !"
Yes, it is better!
I like the idea behind: although ID implements it in a bad way this f/change as mentioned by @laubender, finally the output (through colour or a ch. style) may be saved.
Deux chapeaux! (de paille d'Italie!)