Welcome Guest.   Make a donation to an author on the site November 27, 2014, 04:43:32 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Program to change a horizontal line color  (Read 4927 times)
shagger1
Participant
*
Posts: 7


View Profile WWW Give some DonationCredits to this forum member
« on: February 17, 2006, 08:05:57 AM »

It is hard to do-would be nice to have an application that you could open a html page and it would find the lines and allow one to change the color easily rather than searching for <hr then adding a hex code,you see?  Cheers
« Last Edit: February 18, 2006, 02:35:05 AM by brotherS » Logged
mouser
First Author
Administrator
*****
Posts: 33,700



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: March 02, 2006, 11:51:44 AM »

im not sure i understand this request.
Logged
shagger1
Participant
*
Posts: 7


View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: March 02, 2006, 12:02:17 PM »

Hi-if one opens up an html page that has a horizontal line to change the color you have to add a hex value(color) it would be cool to have an application that would open a html page and see the lines (
) then have a dropdown menu so one could pick a color to change it to.....most WYSIWYG  editors dont have this feature...

Cheers
Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #3 on: March 02, 2006, 04:30:29 PM »

I'm not sure I can fully understand what you want, but maybe the great http://www.prall.net/tools/colorcop/ could already help you?
Logged

Thank you.
mouser
First Author
Administrator
*****
Posts: 33,700



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: March 02, 2006, 05:10:40 PM »

i think what he wants is to be able to edit a web page file of his own, and easily change horizontal rule (HR) line colors.
Logged
shagger1
Participant
*
Posts: 7


View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: March 02, 2006, 09:53:19 PM »

Yey mouser that is correct-I use colorcop though....

Lets say I have a page or create one with a horizontal rule(line) - I can edit the size with NVU or a few other applications but none allow you to change the color-you need to view the source and add #f00000 or whatever-some program that would open an html document and see the
then give you a dropdown menu that would have some predefined colors the just click on and then the line color would be whatever you chose,you see??
Logged
allen
Charter Member
***
Posts: 1,173



Powered by Beard

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: March 02, 2006, 10:28:31 PM »

A simple regex find/replace would do it.
Go here:
http://tinyurl.com/gyjqz

Alternately, to just replace <hr and not the closing tag (so you can just insert the color while preserving any following values) you could use this one:
http://tinyurl.com/e7dsz

Open your html file, edit the color code, hit preview to preview it or replace to get the modified source.

If the hr already has a defined color, it gets a bit more complicated, but is doable . . .
« Last Edit: March 02, 2006, 10:38:49 PM by allen » Logged
mouser
First Author
Administrator
*****
Posts: 33,700



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: March 02, 2006, 10:34:45 PM »

it also sounds like not a coding snack but a feature that would be useful in a visual html editor - della is doing a review of html editors for dc, maybe she can keep her eye open for such features.
Logged
taichimaster
Charter Member
***
Posts: 159



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: March 02, 2006, 10:47:23 PM »

Perhaps I am missing something, but why not just add a CSS rule for the HR tag in the header or something?
Logged

shagger1
Participant
*
Posts: 7


View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: March 02, 2006, 11:41:08 PM »

Thanks for the tips but I am trying to make my life easier<grin>I can open the html and add all that stuff but I mostly use NVU and it can change the size but  not the color....I like the easy way-I guess I am a wimp as I love WYSIWYG editors!! Allen-you have a cig in your ear!!
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.039s | Server load: 0.06 ]