DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Program to change a horizontal line color  (Read 12,781 times)

shagger1

  • Participant
  • Joined in 2005
  • *
  • Posts: 7
IDEA: Program to change a horizontal line color
« on: February 17, 2006, 02:05 PM »
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, 08:35 AM by brotherS »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: IDEA: Program to change a horizontal line color
« Reply #1 on: March 02, 2006, 05:51 PM »
im not sure i understand this request.

shagger1

  • Participant
  • Joined in 2005
  • *
  • Posts: 7
Re: IDEA: Program to change a horizontal line color
« Reply #2 on: March 02, 2006, 06:02 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 ( <hr> ) then have a dropdown menu so one could pick a color to change it to.....most WYSIWYG  editors dont have this feature...

Cheers

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
Re: IDEA: Program to change a horizontal line color
« Reply #3 on: March 02, 2006, 10:30 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?
Thank you.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: IDEA: Program to change a horizontal line color
« Reply #4 on: March 02, 2006, 11:10 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.

shagger1

  • Participant
  • Joined in 2005
  • *
  • Posts: 7
Re: IDEA: Program to change a horizontal line color
« Reply #5 on: March 03, 2006, 03:53 AM »
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 <hr> 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??

allen

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,206
    • Participated in NANY Challenge Once
    • Cody Award
    • Programming School - Deluxe Bonus Medal
    • Military Service Badge - US Navy
    • Linux User
    • Writer
Re: IDEA: Program to change a horizontal line color
« Reply #6 on: March 03, 2006, 04:28 AM »
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 03, 2006, 04:38 AM by allen »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: IDEA: Program to change a horizontal line color
« Reply #7 on: March 03, 2006, 04:34 AM »
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.

taichimaster

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 160
    • Plugin Coding Medal
Re: IDEA: Program to change a horizontal line color
« Reply #8 on: March 03, 2006, 04:47 AM »
Perhaps I am missing something, but why not just add a CSS rule for the HR tag in the header or something?

shagger1

  • Participant
  • Joined in 2005
  • *
  • Posts: 7
Re: IDEA: Program to change a horizontal line color
« Reply #9 on: March 03, 2006, 05:41 AM »
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!!

Original address: https://www.donationcoder.com/forum/index.php?topic=2491.0