topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 4:39 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Program to change a horizontal line color  (Read 9249 times)

shagger1

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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #1 on: March 02, 2006, 11:51 AM »
im not sure i understand this request.

shagger1

  • Participant
  • Joined in 2005
  • *
  • Posts: 7
    • View Profile
    • clipedesign
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #2 on: March 02, 2006, 12: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,260
    • View Profile
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #3 on: March 02, 2006, 04: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?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #4 on: March 02, 2006, 05: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
    • View Profile
    • clipedesign
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #5 on: March 02, 2006, 09:53 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 <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
    • View Profile
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #6 on: March 02, 2006, 10:28 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 PM by allen »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #7 on: March 02, 2006, 10:34 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.

taichimaster

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 160
    • View Profile
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #8 on: March 02, 2006, 10:47 PM »
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
    • View Profile
    • clipedesign
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #9 on: March 02, 2006, 11:41 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!!