Loading ...
Sorry, an error occurred while loading the content.

Modifiying html styles

Expand Messages
  • dvdwriters12
    Trying to write a clip and was wondering if there is an easy way to modify HTML styles, like bold / italic / underline. The problem is the tags need nesting
    Message 1 of 3 , Apr 9, 2006
    • 0 Attachment
      Trying to write a clip and was wondering if there is an easy way to
      modify HTML styles, like bold / italic / underline.

      The problem is the tags need nesting and replacing when differnet
      options are selected, bold & italic together etc:

      ^!Set %anchortext%=^?{(T=M;H=3)Enter sometext}

      ^!set %text%=^?[(T=A)Style==Italic^=<em>^%anchortext%
      </em>|_Bold^=<strong>^%anchortext%</strong>|Underline^=<u>^%anchortext%
      </u>|Normal^=^%anchortext%]


      Anyway one know of an easy way to do it ?
    • loro
      ... Since you say styles , I take it you use EM just for the way it looks? Then you could maybe use CSS instead, which makes it easier. If you just want an
      Message 2 of 3 , Apr 9, 2006
      • 0 Attachment
        dvdwriters12 wrote:
        >Trying to write a clip and was wondering if there is an easy way to
        >modify HTML styles, like bold / italic / underline.
        >
        >The problem is the tags need nesting and replacing when differnet
        >options are selected, bold & italic together etc:
        >
        >^!Set %anchortext%=^?{(T=M;H=3)Enter sometext}
        >
        >^!set %text%=^?[(T=A)Style==Italic^=<em>^%anchortext%
        ></em>|_Bold^=<strong>^%anchortext%</strong>|Underline^=<u>^%anchortext%
        ></u>|Normal^=^%anchortext%]

        Since you say "styles", I take it you use EM just for the way it looks?
        Then you could maybe use CSS instead, which makes it easier. If you just
        want an anchor, no href, something like this...

        ^!SetListDelimiter "; "
        ^!Set %anchortext%=^?{(T=M;H=3)Enter sometext}
        ^!Set %text%=^?{(T=A)Style==Italic^=font-style: italic|_Bold^=font-weight:
        bold|Underline^=text-decoration: underline}
        ^!InsertText <a style="^%text%">^%anchortext%</a>

        Lotta
      • dave
        Hi I m old fashioned I d use some text . THANKYOU DAVE M ... From: dvdwriters12 To:
        Message 3 of 3 , Apr 11, 2006
        • 0 Attachment
          Hi
          I'm old fashioned I'd use <bold><italic>some text </italic></bold> .
          THANKYOU DAVE M

          ----- Original Message -----
          From: "dvdwriters12" <dvdwriters@...>
          To: <ntb-clips@yahoogroups.com>
          Sent: Monday, April 10, 2006 5:33 AM
          Subject: [Clip] Modifiying html styles


          > Trying to write a clip and was wondering if there is an easy way to
          > modify HTML styles, like bold / italic / underline.
          >
          > The problem is the tags need nesting and replacing when differnet
          > options are selected, bold & italic together etc:
          >
          > ^!Set %anchortext%=^?{(T=M;H=3)Enter sometext}
          >
          > ^!set %text%=^?[(T=A)Style==Italic^=<em>^%anchortext%
          > </em>|_Bold^=<strong>^%anchortext%</strong>|Underline^=<u>^%anchortext%
          > </u>|Normal^=^%anchortext%]
          >
          >
          > Anyway one know of an easy way to do it ?
          >
          >
          >
          >
          >
          >
          > Fookes Software: http://www.fookes.us, http://www.fookes.com
          > Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
          >
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
          >
          >
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.