Sponsored Content
Full Discussion: Allign text html
Top Forums Shell Programming and Scripting Allign text html Post 302434523 by pludi on Saturday 3rd of July 2010 06:18:45 AM
Old 07-03-2010
What do you mean by "align"? If you want to pretty-print the code, run it through HTML Tidy
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

html - text file question

Hi - not sure if this is the correct forum but maybe you can help all the same. I have an ascii file on my server that I log events to.. I have samba and apache running on this server also - although I am not currently using them and have just started them up. They both appear fine so far. I... (5 Replies)
Discussion started by: frustrated1
5 Replies

2. UNIX for Dummies Questions & Answers

How do I extract text only from html file without HTML tag

I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies

3. Shell Programming and Scripting

Converting a text file to HTML

Hi, I need to convert a text file formatted like this ("tshark -z conv,ip" output) to HTML: ===================================================================================================== IPv4 Conversations Filter:<No Filter> | <- ... (4 Replies)
Discussion started by: ph0enix
4 Replies

4. Shell Programming and Scripting

outputting a text file in html

is there anyway i can paste/cat a text file into a html paragraph <p> function html_header { cat <<END <html> <head><title>${1}</title></head> <body> <p> ${2} </p> END } function html_footer { cat <<END </body> </html> END (2 Replies)
Discussion started by: magnia
2 Replies

5. Web Development

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. 1: XYZ. 2009 Jul 14. Perl is a scripting language. Perl is a high-level, general-purpose, interpreted, dynamic programming language ID: 2547999 The output... (1 Reply)
Discussion started by: vanitham
1 Replies

6. Shell Programming and Scripting

Allign the output

Hi I have an SQL which returns me the o/p as below in an unformatted manner Table Size No. ============================================= DEF 22 2 PAF 3 1 99D 12 1 USERS 6 1 04D 4 ... (4 Replies)
Discussion started by: jjoy
4 Replies

7. Shell Programming and Scripting

Parsing HTML, get text between 2 HTML tags

Hi there, I'm quite new to the forum and shell scripting. I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :( <a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
Discussion started by: Mysthik
1 Replies

8. Shell Programming and Scripting

Allign the text result of a for/next cicle

Dear community, probably is quite easy, but I'm scratching my head to find a solution on Red Hat bash. What I have to do is to allign the result of a for/next cicle, something like: $ printf("%-5s %05x %5d\n", $next, $Server, $Client) -sh: syntax error near unexpected token `"%-5s %05x... (4 Replies)
Discussion started by: Lord Spectre
4 Replies

9. Shell Programming and Scripting

HTML Conversion of text file

Hi, I have following text file. I want to convert it into the below HTML format. Kindly help. Input Text File Header 1 ======= Name:*** Age:*** Address:*** Work Phone:*** Email:*** Mobile:*** Country:*** City:*** Pincode:*** some text here **** (10 Replies)
Discussion started by: ctrld
10 Replies

10. Shell Programming and Scripting

Format text file to html

Hi Experts, Anybody out there figure out on how to achieve in shell scripts or tools. I have done googling to find solutions but no luck. I have thousands of .txt files to batch process, please see the below sample text content after -------- start here --------. What I want to achieve is to... (10 Replies)
Discussion started by: lxdorney
10 Replies
TIDY_SETOPT(3)								 1							    TIDY_SETOPT(3)

tidy_setopt - Updates the configuration settings for the specified tidy document

SYNOPSIS
bool tidy_setopt (string $option, mixed $value) DESCRIPTION
tidy_setopt(3) updates the specified $option with a new $value. PARAMETERS
o $option - The tidy option name. A list of available configuration options may be found at: http://tidy.sourceforge.net/docs/quickref.html. o $value - The tidy option name. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 tidy_setopt(3) example <?php $html = '<p>test</i>'; $tidy = tidy_parse_string($html); tidy_setopt('indent', FALSE); ?> NOTES
Note This function is only available in Tidy 1.0. It became obsolete in Tidy 2.0, and thus has been removed. SEE ALSO
tidy_getopt(3), tidy_get_config(3), tidy_reset_config(3), tidy_save_config(3). PHP Documentation Group TIDY_SETOPT(3)
All times are GMT -4. The time now is 05:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy