473,395 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

need editor for inserting css tags

Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor? Any advice appreciated!

- Pete

Jun 5 '06 #1
6 1376
On 5 Jun 2006 14:56:09 -0700, "Pete" <si*****@msu.edu> wrote:
Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor?


I do such tasks with a few lines of Perl or Python. Rather than "search
and replace" I do it by "counting" paragraphs. First one's a header,
then a subtitle, then a date, then anything else is body text.
Jun 5 '06 #2
Thanks for the reply. I am a long-time Perl person so I will see if I
can use it to put my custom selector class tags around fragments of
text that are not necessarily blocks. I suppose another possibility
would be to use VB to detect selected text and insert the custom tags
in the text as a WORD doc. The goal is to have every part of the text
be inside one or more css selector classes that are really pre-XML
functional descriptors.

- Pete

Andy Dingley wrote:
On 5 Jun 2006 14:56:09 -0700, "Pete" <si*****@msu.edu> wrote:
Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor?


I do such tasks with a few lines of Perl or Python. Rather than "search
and replace" I do it by "counting" paragraphs. First one's a header,
then a subtitle, then a date, then anything else is body text.


Jun 6 '06 #3
In our last episode, <11*********************@y43g2000cwc.googlegroups. com>,
the lovely and talented Pete broadcast on
comp.infosystems.www.authoring.stylesheets:
Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor? Any advice appreciated!


Tons of text editors can do this if you know how to write or record macros
for them. I use JOE which has a faily straight forward macro language (and
what you want to do does not require some of the less-straight-forward
advanced features). Recent versions of JOE allow you dump recorded macros,
so that you can record what you want to do once, dump the recorded macro,
and then copy that to a key mapping, so you never have to actually
understand what you are doing. It seems a tall order for a one-time task,
but mastering the macro language of some text editor is a skill that will
repay you many times.

--
Lars Eighner http://larseighner.com/ http:/myspace.com/larseighner
I hate laundry month.
Jun 6 '06 #4
"Pete" <si*****@msu.edu> wrote in message
news:11*********************@y43g2000cwc.googlegro ups.com...
Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor? Any advice appreciated!

- Pete


I often use winedt, and this can do search and replace with regular
expressions.
Jun 6 '06 #5
Pete wrote:
Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor? Any advice appreciated!


Other responses have included alternative solutions and existing
programs that kind-of do this. Still, I find myself going through a
process like this from time to time, and a specialized text editor
would be more useful than extensive use of copy+paste, which is my
current solution. A single F# keypress is a lot less fatiguing than a
Ctrl+V combination when repeated dozens of times. Perhaps I'll put
something together in VB in the near future.

--
Vid the Kid

Jun 6 '06 #6
On 5 Jun 2006 14:56:09 -0700, "Pete" <si*****@msu.edu> wrote:
Hi - I have 200 past meeting minutes to convert from text to html with
an already settled-on tested css stylesheet. So all I need is an
editor where I can highlight text and maybe hit the right f key to
insert the right tags at the two ends of the highlighted text. Is
there such an editor? Any advice appreciated!


Probably numerous editors can do this. I use NoteTab for this myself.

If you have to do a lot of documents, maybe you could use an editor such
as NoteTab to do the headings and lists manually, and then a bit of Perl
to put everything else in paragraphs. It depends rather on how
consistently the original documents are formatted.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jun 6 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mike Kamermans | last post by:
I hope someone can help me, because what I'm going through at the moment trying to edit XML documents is enough to make me want to never edit XML again. I'm looking for an XML editor that has a...
71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
0
by: Yaseen | last post by:
Hi, I am trying to copy the content of word document to a DHMLEditor. When i copy and paste the content in the editor it shows only a placeholder for the images and it take different tags...
0
by: Christopher Ambler | last post by:
This is long, but it's driving me nuts. I need some adult supervision :-) (and I'm not above bribing for help) I have a stored procedure that I call that returns XML to me. The SP returns 3...
1
by: _DG | last post by:
Re VS2005 editor in Emacs mode (options->env->keyboard mapping) First of all, there are very few editor options for formatting C/C++ code. Only three option pages. C# has about 10, I believe....
3
by: rahman | last post by:
I have few hundred HTML pages. I need to extract portion of each HTML page into a text/database/HTML files format. You can imagine it is very tedious to do one by one. Is there any automatic...
9
by: TristaSD | last post by:
Hi, Does anyone know where I can get a decent WYSIWYG text area editor to use on one of my sites? The goal is to accomodate users who know zero html and to insert blog-like enties into the...
8
by: Anupam | last post by:
Hello, I have an XML schema that I would like my users to use. However, I do not want them to use XML tags in an XML editor or a plain text editor to create the file. Is there some...
7
by: neovantage | last post by:
Hey All, i am using InnovaStudio WYSIWYG Editor. It shows html tags like <body> <p> <span> at the bottom bar of InnovaStudio WYSIWYG Editor when i write some text on it. I want to omit that html...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.