What Editors Create This Code?

Thread Solved

Join Date: Mar 2005
Posts: 21
Reputation: Cobber is an unknown quantity at this point 
Solved Threads: 0
Cobber Cobber is offline Offline
Newbie Poster

What Editors Create This Code?

 
0
  #1
Jul 22nd, 2008
Hi,

Once again I come to Dani's forum after days of getting nowhere myself.

I am using the "htmlarea" editor with one of my scripts.

A CSS file (probably) is overriding the changes to font sizes I change in the editor unless they are coded in a certain way.

For example this code works:

HTML and CSS Syntax (Toggle Plain Text)
  1. <p align="center"><span style="FONT-SIZE: 18pt; COLOR: red">TEST FONT</span></p>

But the normal HTML version doesn't:

HTML and CSS Syntax (Toggle Plain Text)
  1. <p align="center"><font color="#ff0000" size="5">TEST FONT</font></p>

I have tried many different WYSIWYG editors, Frontpage and Word but none create the code in the first example.

Can anyone tell me the "language" the first example is written in and where I can find an editor that will create that sort of code automatically as you type?

While I can change it myself, I need my customers to be able to use an offline editor without having to know how to code it that way.

Thanks in advance,

Graham
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: What Editors Create This Code?

 
0
  #2
Jul 22nd, 2008
These are inline styles. Dreamweaver will do something similar. It will create a class for the element and embed the styles in the head of the document. This will look like:
  1. <style type="text/css">
  2. <!--
  3. .style1 {
  4. font-size: 18px;
  5. color: #FF0000;
  6. }
  7. -->
  8. </style>
  9. </head>
  10.  
  11. <body>
  12. <p><span class="style1">TEST FONT</span></p>
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 21
Reputation: Cobber is an unknown quantity at this point 
Solved Threads: 0
Cobber Cobber is offline Offline
Newbie Poster

Re: What Editors Create This Code?

 
0
  #3
Jul 22nd, 2008
Thanks Buddylee,

I can see now that I need to use an editor with CSS support, but I want one that customers can download and use on their own computer.

Dreamweaver is fine for the webmaster, but I need something small and preferably free (or very cheap) customers can use.

Every one I've tried either doesn't do the job or does not have a WYSIWYG feature.

Regards,

Graham
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 21
Reputation: Cobber is an unknown quantity at this point 
Solved Threads: 0
Cobber Cobber is offline Offline
Newbie Poster

Re: What Editors Create This Code?

 
0
  #4
Jul 22nd, 2008
Buddylee has unknowingly guided me to the solution.

Instead of using the dropdown font sizes in htmlarea, I should be using the dropdown "heading" sizes to change font sizes. There are 6 of them already there which will do the job nicely.

Changing text colour and background colour still works on the different sizes.

The answer was there all the time, I just couldn't see it!

But if anyone does know of an editor customers can use to create their page offline, I would still appreciate knowing.

Thanks,

Graham
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

Re: What Editors Create This Code?

 
0
  #5
Jul 23rd, 2008
hi
use always for font style, body properties and anything use to again and again css style is good
Thanx,
Shiriyal

http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: What Editors Create This Code?

 
0
  #6
Jul 24th, 2008
You are using deprecated codes. Editors tend to ignore them.

The following are deprecated:
the font tag
align=
color=
size=
bgcolor=
center (except as an argument for text-align)
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC