Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Hilighting a table row

    Hi,

    Is it possible to apply the hilighter to an entire row in a table. I have manages to hilight the text in an individual cell, but I would like the entire row hilighted. Any ideas where to put the "hi" tags in the statement:

    I would have assumed it to be where I inserted the ## in the illustration below, but its not working?

    PS: BTW, how do I paste data containing tags into a post and have them show the tags? I cannot remember? TX
    Attached Images Attached Images
    Regards,
    Rudi

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Hilighting a table row

    You have to put <!t>[hi]<!/t> and <!t>[/hi]<!/t> tags around the text of each cell in the row. Let's see:

    <table border=1> <td valign=top>Aaa</td> <td valign=top>Bbb</td> <td valign=top><span style="background-color: #FFFF00; color: #000000; font-weight: bold">Ccc</span hi></td> <td valign=top><span style="background-color: #FFFF00; color: #000000; font-weight: bold">Ddd</span hi></td> <td valign=top>Eee</td> <td valign=top>Fff</td> </table>
    The "code" for this table is
    <code>
    <!t>[table border=1]<!/t>
    <!t><!/t>
    <!t>[td valign=top]<!/t>Aaa<!t>[/td]<!/t>
    <!t>[td valign=top]<!/t>Bbb<!t>[/td]<!/t>
    <!t><!/t>
    <!t><!/t>
    <!t>[td valign=top]<!/t><!t>[hi]<!/t>Ccc<!t>[/hi]<!/t><!t>[/td]<!/t>
    <!t>[td valign=top]<!/t><!t>[hi]<!/t>Ddd<!t>[/hi]<!/t><!t>[/td]<!/t>
    <!t><!/t>
    <!t><!/t>
    <!t>[td valign=top]<!/t>Eee<!t>[/td]<!/t>
    <!t>[td valign=top]<!/t>Fff<!t>[/td]<!/t>
    <!t><!/t>
    <!t>[/table]<!/t>
    </code>
    You can use the TAG tag from the 1-Click TagPanel or enter <!t>[t]<!/t> and <!t>[/t]<!/t> manually to show tags in a post.

    I use this Word macro to convert [ to <!t>[t]<!/t> and ] to <!t>[/t]<!/t>:
    <code>
    Sub TagTags()
    On Error GoTo Err_Sub
    With Selection.Find
    .Execute FindText:="<!t>[", ReplaceWith:="@@@", Replace:=wdReplaceAll
    .Execute FindText:="]<!/t>", ReplaceWith:="<!t>[/t]<!/t>", Replace:=wdReplaceAll
    .Execute FindText:="@@@", ReplaceWith:="<!t>[t]<!/t>", Replace:=wdReplaceAll
    End With
    Exit Sub
    Err_Sub:
    If Err <> 91 Then
    MsgBox Err.Description, vbExclamation
    End If
    End Sub</code>

  3. #3
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Hilighting a table row

    TX. I started putting it around each value, but I thought there was a shortcut.

    Thats strange, I tried the tag tags, but it showed zippo! Maybe I just did it wrong.
    TX
    Regards,
    Rudi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •