Enter Line Break (CRLF) with Ultraedit

by Yuval Ararat on 18/10/2007

If you ever wondered how to insert CRLF to a text you look at at a very specific position in the text, say like between >< in XML to structure it, then there is a trick i haven’t been aware of.
The way you might think as a C++ or unix person is \n which works for some programs like textpad. but textpad and Hebrew are enemies so i needed my faithful UltraEdit.
the trick i stumbled upon was to add ^p in the replace and put >^p< to get a CR LF action.
that was so nice and so easy to make a not valid XML file readable in the Altova XMLSpy.

{ 3 comments… read them below or add one }

tiny October 9, 2008 at 6:16 pm

Aarrgh, I already struggled over month for this. Thanks for this :)

MOHAMMED SUBHAN August 24, 2011 at 6:06 am

this is what i was looking for, i used to do the same in my previous project after a gap of 5 months i completely forgot on how to break the xml files. thanks it was really useful

wen November 22, 2011 at 4:41 am

Really helpful, thanks

Leave a Comment

Previous post:

Next post: