Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • August 31, 2015, 10:20:56 AM
  • Proudly celebrating 10 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 5203 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: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 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,946
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« Reply #1 on: March 02, 2006, 11:51:44 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: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 ( <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,122
    • View Profile
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« 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?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,946
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« 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.

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: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 <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,191
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« 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 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,946
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Program to change a horizontal line color
« 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.

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:23 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: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!!