![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Insert Tabs / Indent text | Tonda | Shell Programming and Scripting | 8 | 03-03-2009 03:08 AM |
| Converting a text file to HTML | ph0enix | Shell Programming and Scripting | 4 | 10-29-2008 07:58 PM |
| How do I extract text only from html file without HTML tag | los111 | UNIX for Dummies Questions & Answers | 4 | 11-28-2007 04:40 AM |
| coverting html data to text in 'c' | phani_sree | High Level Programming | 3 | 10-18-2007 11:06 AM |
| html - text file question | frustrated1 | Shell Programming and Scripting | 5 | 09-21-2005 06:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to indent the second line of text in html?
Hi,
I have 3 lines in a text and i want to indent the 2nd line of the text. How can i do that in html? Here is the text. Code:
1: XYZ. 2009 Jul 14. Perl is a scripting language. Perl is a high-level, general-purpose, interpreted, dynamic programming language ID: 2547999 Code:
1: XYZ. 2009 Jul 14.
Perl is a scripting language. Perl is a high-level, general-purpose, dynamic
programming language
ID: 2547999
Any idea??? Regards Vanitha |
|
|||||
|
It depends on how exactly you print the second line. Do you want tab or 4/8 spaces ? If you can use that in the print function, for example :
Code:
[root@server:~]$ perl -e 'print "\ttest\n"';
test
[root@server:~]$
Code:
print <<EOM;
test
test
test
EOM
For more advanced tasks you can use perltidy. HTH. Update : Oh, I just saw the post was one week old, I hope it's not too late. Last edited by sysgate; 08-10-2009 at 05:26 AM.. Reason: more info |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|