< and > Literals in Clips

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
thimker
Posts: 6
Joined: Thu Dec 30, 2004 11:39 pm

< and > Literals in Clips

Post by thimker »

To use my style sheets, I had clips in NoteTabPro which would enter such things as <span class="san"> * </span> where * represents the place holder for a particular editor, such as \^ in TextPad. I find that TP does not allow < and > in clips, will allow &lt; and &gt; which are worthless in my HTML coding. How can I get such literals to be recognized? I tried \< and \> "escaping", which did not work.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Why do you think that < or > are not allowed in Textpad clips?

They both work without any problems.

For an example, have a look at the "HTML Tags" clip library which is afair in the standard installlation ...
thimker
Posts: 6
Joined: Thu Dec 30, 2004 11:39 pm

from observation

Post by thimker »

TP refuses attempts at .tcl of this form
!TEXT=no6
<span class="n06">\^</span>
!
If you can pull me thru this, you have my thanks.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

I just copied your example into my "HTML Tags" tcl:
right-click on the Clip Book dropdown, "Edit Book"
Goto end, Paste your example, File Save
Right-click on clip book dropdown, "Refresh".

The list now has a new entry "no6".
This new entry can be easily used.

Then I copied just the span line.
Right click in Textpad in the list of clippings, "Paste New Entry".
The box showed the opening tag in the "before cursor" field and the closing tag in the "after cursor" field.
I added a name and clicked ok.

Another usable clipbook entry.
(I did not save the clipbook after that as I am not really interested in this span, so I removed the entries again).
Post Reply