need advice about HTML tags , please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • plyre
    Registered User
    • Feb 2004
    • 132

    #1

    need advice about HTML tags , please

    Hi
    I need some advice
    How can I put automatically br tag in the end of each line
    let's say I have a next list :
    ferrarired
    porsheblue
    lamboyellow
    hummerblack
    salensilver
    bmwwhite

    and I want to put automatically br tag in the end of each line
    like this :
    ferrarired br
    porsheblue br
    lamboyellow br
    hummerblack br
    salensilver br
    bmwwhite br

    is there any software around that can do that for me ? some text editor ?
    Thanks !
    Last edited by plyre; 02-18-2004, 07:51 AM.
  • Rorschach
    So Fucking Banned
    • Aug 2002
    • 5579

    #2
    PHP Code:
    <?php
    $string = "yourlist\nof stuff\nhere\n";
    $string = nl2br($string);
    print $string;
    ?>

    Comment

    • woj
      <&(©¿©)&>
      • Jul 2002
      • 47880

      #3
      just run a search and replace in any decent text editor...
      Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
      Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
      Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

      Comment

      • plyre
        Registered User
        • Feb 2004
        • 132

        #4
        thanks !

        Comment

        • raymor
          Confirmed User
          • Oct 2002
          • 3745

          #5
          > just run a search and replace in any decent text editor...

          Depending on the editor, the "end of line" charactr is probably
          represented by "\n".
          You don't want a BR tag for a list, though.
          For a list, use one of the list tags.
          OL is an ordered list - it'll number the items in the list by default.
          Of course you could set you CSS display something else instead
          of numbers, or nothing at all.
          UL is an unordered list - It doesn't number the items and by default
          bullets each item. Of course the bullets and all are fully configurable
          with a line of CSS. On one gun site a do the members asked for
          "bigger bullets" next to each message in the list, so I set the CSS
          to bullet each one with a 9mm Hydrashock shell .
          For historical display only. This information is not current:
          support&#64;bettercgi.com ICQ 7208627
          Strongbox - The next generation in site security
          Throttlebox - The next generation in bandwidth control
          Clonebox - Backup and disaster recovery on steroids

          Comment

          Working...