Perhaps with a freeware or jedit extension or something...
Anything free and efficient is fine.
I have a bunch of text that I would like to divide into paragraphs by lines.
How can I quickly convert a bunch of text into paragraphs surrounded by %26lt;p%26gt; tags in an HTML document?
Use a simple text editor - beware of WORD or other complex apps, as they may stuff things up by %26#039;helping%26#039; you.
I use EditPlus - shareware - I bought it, it%26#039;s so good - http://www.editplus.com
You should only have the paragraphs separated by newline newline chars (i.e. 2 of them).
Do a global substitution.
Replace newline newline
with %26lt;/p%26gt;newline newline%26lt;p%26gt;
or you can just use %26lt;/p%26gt;newline%26lt;p%26gt;
(Hope I typed that right!)
Reply:You can use the powerful tool %26quot;Replace Pioneer%26quot; just released this month.
It can replace text very flexible, you can define your own paragragh delimiter. The help file of Replace Pioneer itself is convert from a text file by adding %26lt;p%26gt; and %26lt;/p%26gt; in each line.
Using Replace Pioneer, you will find more surprises.
You can download it at http://www.mind-pioneer.com
If you can not resolve your issue by yourself, you can enter your question in %26quot;Service/My Comments%26quot; page of the www.mind-pioneer.com.
The %26quot;Four Greate Invention%26quot; of Replace Pioneer:
1) Find text much more accurate:
Support maximum 7 level filters in pattern match:
* Paragraph pattern filter: user can select only desired paragraph by
pattern matching.
* Paragraph range filter: among the matched paragraphs, user can
select a range to replace.
* Line pattern filter: user can select only desired line by pattern
matching.
* Line range filter: among the matched lines, user can select a range
to replace.
* Pattern filter: user can find final replace items by this pattern
matching.
* Range filter: among the matched items, user still can select a
range to replace.
* Condition filter: the additional powerful condition filter is to
remove unwanted result, make replace more accurate.
2) Replace text much more flexible:
Support user-defined transformation of replace text instead of fixed
text. The software can replace the found text with any self-defined
conversion, which make it easier to support flexible context-related
replacement. A lot of variables and functions are provided to support
the conversion.
3) File input/output much more powerful:
Support file spliting and merging in horizontal and vertical
direction.
Support Web Page and DOS command result as input file type.
Support UNICODE and Most of the other Encoding types.
4) Operation much more easier and reliable:
Recording and re-running scheme make replace and script creating work
much more easier, and detail recorded and highlighted change make
software much more reliable.
Nanny
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment