Sponsored Content
Full Discussion: Nu Html Checker at w3.org
The Lounge What is on Your Mind? Nu Html Checker at w3.org Post 303026460 by Neo on Wednesday 28th of November 2018 06:23:04 AM
Old 11-28-2018
Haha.. I already moved that CSS up, down all over the place. What a pain. LOL

Taking a break from this zombie mind-numbing busy-work!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

spell checker program

2.I need shell script to list all the 'words' in a given file (text) that are not listed in a specified dictionary. Let us call this utility 'spell-check'. 'spell-check' will be called as follows. $ spell-check letter Lucent UNIX UNIX OS a $ dictionary words are listed in lower... (2 Replies)
Discussion started by: ksjanakan
2 Replies

2. Programming

Proxy Checker in C

Hello Everyone Im planning to make a C program to check a proxy server if it is working or bot, test the proxy speed ,response time , as well as a proxy type. i'm learning using libcurl right now to fetch http headers. do you guys have some links about how to check proxy headers?. Thank you. ... (0 Replies)
Discussion started by: magictalong
0 Replies

3. 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

4. UNIX for Advanced & Expert Users

shellinabox/html help to insert a keypress with an html button

I am trying to use shellinabox as a terminal emulator. Everything is working except there seems to be no way to simulate an F14 button press in shellinabox. I am already embedding shellinabox in an html page so Im am wondering if there is a way to make an html/js button that will pass F14 to the... (0 Replies)
Discussion started by: syadnom
0 Replies

5. Red Hat

Send HTML body and HTML attachment using MUTT command

Hi there.. I need a proper "mutt" command to send a mail with html body and html attachment at a time. Also if possible let me know the other commands to do this task. Please help me.. (2 Replies)
Discussion started by: vickramshetty
2 Replies

6. Shell Programming and Scripting

Removing all except couple of html tags from html file

I tried to find elegant (or at least simple) way to remove all but couple of html tags from html file, but all examples I found dealt with removing all the tags. The logic of the script would be: - if there is <li> or <ul> on the line, do nothing (=write same line to output) - if there is:... (0 Replies)
Discussion started by: juubuntu
0 Replies

7. UNIX for Advanced & Expert Users

Mutt for html body and multiple html & pdf attachments

Hi all: Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project. There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues. Running with... (1 Reply)
Discussion started by: raggmopp
1 Replies

8. Debian

Getting a better spell checker

Guys I am new to Linux in general and want to know what is the use of the following files-: /usr/share/dict/words /usr/share/dict/words.pre-dictionaries-common Are they used by the spell checker to find potential typos ? If so are there any better larger word lists out there ? I am sure... (2 Replies)
Discussion started by: sreyan32
2 Replies

9. Shell Programming and Scripting

Lottery result checker

So, i made a simple lottery number generator like this: for i in `seq 10`; do seq 1 35 | shuf -n 7 | sort -g | tr '\n' ' ' ;echo; done i've file with winning numbers: Eg:1 10 15 20 25 30 35 2 6 10 14 18 22 26 My problem here is how to compare or check if my generated numbers are match... (10 Replies)
Discussion started by: PuLPi
10 Replies

10. Shell Programming and Scripting

Lottery number checker

hi , Let me put it in a different way with words. Assume the lottery have numbers from 1-50. Out of this 50 numbers, I am going to pick up only 35 numbers randomly. so, my total numbers would be 35 numbers shuffled from nos. I have list of winning numbers in file. Now, the... (9 Replies)
Discussion started by: gsiva
9 Replies
CSS::Tiny(3)						User Contributed Perl Documentation					      CSS::Tiny(3)

NAME
CSS::Tiny - Read/Write .css files with as little code as possible SYNOPSIS
# In your .css file H1 { color: blue } H2 { color: red; font-family: Arial } .this, .that { color: yellow } # In your program use CSS::Tiny; # Create a CSS stylesheet my $CSS = CSS::Tiny->new(); # Open a CSS stylesheet $CSS = CSS::Tiny->read( 'style.css' ); # Reading properties my $header_color = $CSS->{H1}->{color}; my $header2_hashref = $CSS->{H2}; my $this_color = $CSS->{'.this'}->{color}; my $that_color = $CSS->{'.that'}->{color}; # Changing styles and properties $CSS->{'.newstyle'} = { color => '#FFFFFF' }; # Add a style $CSS->{H1}->{color} = 'black'; # Change a property delete $CSS->{H2}; # Delete a style # Save a CSS stylesheet $CSS->write( 'style.css' ); # Get the CSS as a <style>...</style> tag $CSS->html; DESCRIPTION
"CSS::Tiny" is a perl class to read and write .css stylesheets with as little code as possible, reducing load time and memory overhead. CSS.pm requires about 2.6 meg or ram to load, which is a large amount of overhead if you only want to do trivial things. Memory usage is normally scoffed at in Perl, but in my opinion should be at least kept in mind. This module is primarily for reading and writing simple files, and anything we write shouldn't need to have documentation/comments. If you need something with more power, move up to CSS.pm. With the increasing complexity of CSS, this is becoming more common, but many situations can still live with simple CSS files. CSS Feature Support "CSS::Tiny" supports grouped styles of the form "this, that { color: blue }" correctly when reading, ungrouping them into the hash structure. However, it will not restore the grouping should you write the file back out. In this case, an entry in the original file of the form H1, H2 { color: blue } would become H1 { color: blue } H2 { color: blue } "CSS::Tiny" handles nested styles of the form "P EM { color: red }" in reads and writes correctly, making the property available in the form $CSS->{'P EM'}->{color} "CSS::Tiny" ignores comments of the form "/* comment */" on read correctly, however these comments will not be written back out to the file. CSS FILE SYNTAX
Files are written in a relatively human-orientated form, as follows: H1 { color: blue; } .this { color: red; font-size: 10px; } P EM { color: yellow; } When reading and writing, all property descriptors, for example "color" and "font-size" in the example above, are converted to lower case. As an example, take the following CSS. P { Font-Family: Verdana; } To get the value 'Verdana' from the object $CSS, you should reference the key "$CSS->{P}->{font-family}". METHODS
new The constructor "new" creates and returns an empty "CSS::Tiny" object. read $filename The "read" constructor reads a CSS stylesheet, and returns a new "CSS::Tiny" object containing the properties in the file. Returns the object on success, or "undef" on error. read_string $string The "read_string" constructor reads a CSS stylesheet from a string. Returns the object on success, or "undef" on error. clone The "clone" method creates an identical copy of an existing "CSS::Tiny" object. write_string Generates the stylesheet for the object and returns it as a string. write The "write $filename" generates the stylesheet for the properties, and writes it to disk. Returns true on success. Returns "undef" on error. html The "html" method generates the CSS, but wrapped in a "style" HTML tag, so that it can be dropped directly onto a HTML page. xhtml The "html" method generates the CSS, but wrapped in a "style" XHTML tag, so that it can be dropped directly onto an XHTML page. errstr When an error occurs, you can retrieve the error message either from the $CSS::Tiny::errstr variable, or using the "errstr" method. CAVEATS
CSS Rule Order While the order of rules in CSS is important, this is one of the features that is sacrificed to keep things small and dependency-free. If you need to preserve order yourself, we recommend that you upgrade to the more powerful CSS module. If this is not possible in your case, alternatively it can be done with the help of another module such as Tie::IxHash: my $css = CSS::Tiny->new; tie %$css, 'Tie::IxHash'; $css->read('style.css'); Note: You will also need to remember to add the additional dependency to your code or module in this case. SUPPORT
Bugs should be reported via the CPAN bug tracker at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CSS-Tiny> For other issues, or commercial enhancement or support, contact the author. AUTHOR
Adam Kennedy <adamk@cpan.org> SEE ALSO
CSS, <http://www.w3.org/TR/REC-CSS1>, Config::Tiny, <http://ali.as/> COPYRIGHT
Copyright 2002 - 2010 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.16.3 2010-09-03 CSS::Tiny(3)
All times are GMT -4. The time now is 12:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy