Find/Replace paragraph mark in text files

Post any comments, suggestions, annoyances or ideas for future releases here. Please do not post bug reports or questions here.
Post Reply
dscharkss
Posts: 5
Joined: Mon Mar 22, 2010 8:30 pm

Find/Replace paragraph mark in text files

Post by dscharkss »

We're using Zeus to store pseudocode for the QTP code we're written. This will be used for our maintenance documents. Part of the pseudocode is an Overview and for that part, I have used a Text document type.

Since I'm not sure how to make Zeus recognize Outline numbering for indentation, or some of the other Text document needs (like hanging indents), I'm trying to do some formatting using Find/Replace.

Does Zeus recognize the DOS EOL char? In Word, I can use ^p for it. But it's not working here.

Any ideas?

Thanks,
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Since I'm not sure how to make Zeus recognize Outline numbering for indentation, or some of the other Text document needs (like hanging indents),
Could you post an example of some formated QTP ode :?:
Does Zeus recognize the DOS EOL char? In Word, I can use ^p for it. But it's not working here.
To find the end of a line you can search for this string: \n

You can also find the end of the line by searching for $ character if you are using the regular expression search option.
Any ideas?

If I understand the problem, you want to move up/down in the document to a point with a given indent level based on the current indent level. Is this correct :?:

This should be fairly easy to achieve with a small macro script.

Cheers Jussi
dscharkss
Posts: 5
Joined: Mon Mar 22, 2010 8:30 pm

Post by dscharkss »

Sorry, I wasn't very clear. In actuality, the file is text, using English to create pseudocode. I set up a document type for this, using the words I'm using for the Pseudocode as keywords. It's working great.

Then, I set the word wrap feature and used it on the text. This created the paragraph mark (as seen when using Word and you do "Show Paragraph marks"-- the backwords 'P'). That mark does not seem to be recognized by using '\n'. I tried that already.

The outline numbering would also be text. Just as in a regular Word document. Such as "1.0"; "1.1", "1.2", etc. I'm wondering if something can be setup, written, whatever to that I could imitate regular outline indenting?

You said, "If I understand the problem, you want to move up/down in the document to a point with a given indent level based on the current indent level. Is this correct ?" I think that is correct, but I don't know how to write a macro. Could you help? I'm finding the help files to just miss giving the information I need.

Hope this clarifies.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This created the paragraph mark (as seen when using Word and you do "Show Paragraph marks"
I turned on paragraph marks in Word and then opened a stock standard text file a sure Word could identify the paragraphs.

Unfortunately, there is no such similar feature in Zeus :(
The outline numbering would also be text. Just as in a regular Word document. Such as "1.0"; "1.1", "1.2", etc. I'm wondering if something can be setup, written, whatever to that I could imitate regular outline indenting?
I am pretty sure there will be some sort of navigation that could be configured/crafted for what you need.

For example the function regular expression field found in the document type might work :?

But for me to offer any sort of useful feedback I will need to see a short example of what your code looks like ;)
I think that is correct, but I don't know how to write a macro.

If you do the following:
  1. Macro Record Start/Stop menu
  2. File New menu
  3. Type in 'this is my first macro'
  4. Macro Record Start/Stop menu
  5. Macro View Source menu
You have now written your first macro ;)

You can run this macro using the Run option on the Macros menu.

Cheers Jussi
Post Reply