DZone Forums
Go Back   DZone Forums > Community > The DZone Network > Zones
Reload this Page Problems with WYSIWYG Editor and Code Syntax Highlighting
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Exclamation Problems with WYSIWYG Editor and Code Syntax Highlighting - 01-27-2008, 05:10 PM

Howdy,

I just wrote up and submitted a tips and trick article for php zone (How to Continue to Pass Elements in a Multi-part Form).

While writing it up, I had some trouble with the WYSIWYG editor and getting the syntax highlighting to work properly.

The line of html showed up fine. However, I tried to highlight the php snippet, and nothing happened. I went into the source and fixed it up so that it was all wrapped in one pre tag with class "php," but it still showed up as plain text.

I eventually decided to highlight it as Ruby (got strings and variables highlighted anyway).

Just thought I'd raise the issue, in case you weren't aware of the problem.

- Walkere
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Default 01-27-2008, 05:33 PM

I turned off the WYSIWYG editor in my profile and just enter the HTML.
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Default 01-27-2008, 05:54 PM

Good idea. I hate the thing, but I wasn't sure there was a way to turn it off. I was looking for an option on the actual writing page... but now I found it in the profile section.

- Walkere
Reply With Quote
  (#4 (permalink)) Old
Administrator
 
rick's Avatar
 
Posts: 52
Thanks: 8
Thanked 1 Time in 1 Post
Join Date: Jan 2008
Location: Cary, NC
Send a message via AIM to rick Send a message via MSN to rick Send a message via Yahoo to rick Send a message via Skype™ to rick
Default 01-27-2008, 05:56 PM

Quote:
Originally Posted by walkere View Post
Good idea. I hate the thing, but I wasn't sure there was a way to turn it off. I was looking for an option on the actual writing page... but now I found it in the profile section.

- Walkere
I saw another system with also used TinyMCE but had it in a tabbed interface with "plain text" in another tab next to the "wysiwyg" tab. I'd love it if we made plain text so obviously accessible.
Reply With Quote
  (#5 (permalink)) Old
Administrator
 
matt's Avatar
 
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Default 01-27-2008, 05:59 PM

Quote:
Originally Posted by walkere View Post
Good idea. I hate the thing, but I wasn't sure there was a way to turn it off. I was looking for an option on the actual writing page... but now I found it in the profile section.

- Walkere
There should be an option just below the text area. Did you eventually get it highlighted as PHP? I know we've had PHP code successfully put in, but we'll give it a check just to make sure.

-Matt
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating GMF editor with a custom Eclipse Forms editor llednicki Eclipse 0 12-21-2008 04:43 AM
code syntax highlighting in SWT markitus Java 0 12-03-2008 07:59 AM
Highlighting matching brace in Text Editor lolita Eclipse 0 09-16-2008 09:51 PM
E-mail syntax restriction too strict Trinition Feedback 0 08-15-2008 11:05 AM
Question/Problem w/ my Program....I'm I missing something here in my syntax?? thx Felipe M Java 1 03-04-2008 04:13 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com