LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-19-2009, 03:18 PM   #16
Inbhir Pheofharain
LQ Newbie
 
Registered: May 2009
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by vonbiber View Post
ok, replace the line I mentionned by this one:

########## copy and paste

s?\([ \t\r\n]*[^]*[ \t\n\r]*\)\([^]\{20,\}[ \t\n\r]*[^]*[ \t\n\r]*[^]*[ \t\n\r]*\)?\1<td class
=long>\2?g

############ end of copy

By the way the script excepts a well-formed html file,
that is, if a tag is opened (e.g., <td>\) it expected
the corresponding closing tag (</td>\)

With a few lines of more code, it should be possible
to first fix the html file and then do the
replacements.

Let me know how it went
That worked perfectly - thanks very much for your help.

Had to figure out Stylesheets before I could try it, but I got there in the end.

Thanks again!
 
Old 07-20-2009, 02:09 AM   #17
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware
Posts: 299

Rep: Reputation: 50
glad it worked

the color you get for your long entries
<td class=long>...</td>
is red

the code is
.long { color: #ff0000; }

#RRGGBB: red component, green component, blue component
it uses hexadecimal (from 0 to f), so f is the maximum and 0 the minimum
if you want it in blue you'd have
.long { color: #0000ff; }
and if you use a color picker it usually displays a hex code
then you can paste it.
you could also some other styles for those columns:
font size, weight (bold), italic:

.long { ...; font-weight: bold; }
or/and: font-style: italic;
etc.

If you want to experiment with css, you can try this:

http://www.w3schools.com/css/css_examples.asp
 
Old 07-20-2009, 03:02 PM   #18
Inbhir Pheofharain
LQ Newbie
 
Registered: May 2009
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by vonbiber View Post
glad it worked

the color you get for your long entries
<td class=long>...</td>
is red

the code is
.long { color: #ff0000; }

#RRGGBB: red component, green component, blue component
it uses hexadecimal (from 0 to f), so f is the maximum and 0 the minimum
if you want it in blue you'd have
.long { color: #0000ff; }
and if you use a color picker it usually displays a hex code
then you can paste it.
you could also some other styles for those columns:
font size, weight (bold), italic:

.long { ...; font-weight: bold; }
or/and: font-style: italic;
etc.

If you want to experiment with css, you can try this:

http://www.w3schools.com/css/css_examples.asp

Thats's a superb link - thanks again.

I knew about the Hex Codes, just the whole 'Stylesheet' thing is new to me, although I had heard of them. Up until now I'd been using the 'old way' i.e. tags everywhere!
 
  


Reply

Tags
condition, html, table


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pdf table to html table? frieza Linux - Software 4 02-14-2009 06:21 PM
Viewing HTML Documents In KWord With Original Formatting Mark7 Linux - Software 1 06-18-2007 02:46 AM
html formatting thunderbird sharky Linux - Software 4 01-17-2006 02:33 PM
Howto turn off html formatting in OpenOffice jlinkels Linux - Software 1 12-22-2005 01:56 PM
changing an HTML table with javascript eantoranz Programming 2 10-29-2004 12:21 PM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration