[oXygen-user] Do format-and-indent for a set of files?

Eliot Kimber ekimber at contrext.com
Thu Mar 13 11:40:43 CDT 2014


Ah, that will work, but setting format and indent on open is pretty
dangerous as a global setting :-)

I'm thinking that what I really want here is a way to do simple Oxygen
action scripting, but I'm not sure how realistic that is--it certainly has
the potential to be a can of worms.

But I'm thinking of tools like InDesign and Illustrator that let you
record actions and then play them back--it's a sophisticated tool but very
handy.

But it may be that I'm trying to solve this particular problem in the
wrong way simply because Oxygen is the tool at hand.

Maybe a better solution would be an option in format and indent to break
attributes at word boundaries and indent the result?

Cheers,

E.
—————
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com




On 3/13/14, 11:23 AM, "George Cristian Bina" <george at oxygenxml.com> wrote:

>Hi Eliot,
>
>Unfortunately we do not have such an action. A way to achieve this
>however is to turn on "format and indent the document on open"
>(Options-> Preferences -- Editor/Format) and then select the schemas you
>want to indent in the Project view, press Enter or invoke the "Open all
>files" action from the contextual menu then use the Save All action to
>save them.
>
>Best Regards,
>George
>--
>George Cristian Bina
><oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
>http://www.oxygenxml.com
>
>On 3/13/14, 3:14 PM, Eliot Kimber wrote:
>> So for my DITA RNG @domains update process I have:
>>
>> 1. Apply my XQuery to do the update of each doc
>>
>> 2. Do a global search and replace of "&#xA;" to "\n"
>>
>> 3. For each document, apply format-and-indent to make everything neat.
>>
>> 1 and 2 I can quickly do from the project view against all the RNG files
>> by setting up a logical folder to hold the files.
>>
>> But there doesn't appear to be a way to do 3 against files in the
>>project
>> view. Is this possible?
>>
>> Thanks,
>>
>> Eliot
>>
>> —————
>> Eliot Kimber, Owner
>> Contrext, LLC
>> http://contrext.com
>>
>>
>>
>> _______________________________________________
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>
>




More information about the oXygen-user mailing list