kpd1
10-11-2003, 07:03 PM
Hi,
Hopefully someone can point me to a tutorial...
I can find tutorials on how to highlight a block of text, but what I need to do is have code inserted around a text block so that the entire thing (code and text) can be highlighted for cut and paste.
For example, I would like someone who is not familiar with html to be able to enter a url and descriptive name, hit enter, then then appropriate codes <a href="...etc) would surround the url and link name. That person could subsequently highlight the entire block and copy and paste the resultant code into a web page builder.
Is there a tutorial that would show how to have the code surround the user input? I've tried searching Google, this forum, and a Javascript tutorial site, but nothing appropriate comes up with my search terms (highlight javascript tutorial and similar terms).
Any help would be very much appreciated.
kpd
Hopefully someone can point me to a tutorial...
I can find tutorials on how to highlight a block of text, but what I need to do is have code inserted around a text block so that the entire thing (code and text) can be highlighted for cut and paste.
For example, I would like someone who is not familiar with html to be able to enter a url and descriptive name, hit enter, then then appropriate codes <a href="...etc) would surround the url and link name. That person could subsequently highlight the entire block and copy and paste the resultant code into a web page builder.
Is there a tutorial that would show how to have the code surround the user input? I've tried searching Google, this forum, and a Javascript tutorial site, but nothing appropriate comes up with my search terms (highlight javascript tutorial and similar terms).
Any help would be very much appreciated.
kpd