GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need advice about HTML tags , please (https://gfy.com/showthread.php?t=238633)

plyre 02-18-2004 09:49 AM

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 !

Rorschach 02-18-2004 09:59 AM

PHP Code:

<?php
$string 
"yourlist\nof stuff\nhere\n";
$string nl2br($string);
print 
$string;
?>


woj 02-18-2004 10:03 AM

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

plyre 02-18-2004 10:48 AM

thanks !

raymor 02-18-2004 10:52 AM

> 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 :) .


All times are GMT -7. The time now is 05:40 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123