• Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom Visual Markup using the HtmlEditorKit

 
Linda Janes
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I'm trying to create a 'simple' html/xml editor, where I can highlight a word/s then click a button which applies a markup tag to the selection.
Also depending on the markup tag the editor pane would show a visual change (but not the makup tag) i.e.
<thesky>sky</thesky>
shows only the word sky in blue.
I've tryed using a JTextPane() along with the HtmlEditorKit(), as the editor kit only supports HTML 3.2 it would required me to append my markup tags to the SGML DTD (rather complicated).
If this indeed does work, it still leaves me pondering how to show a visual change, without affecting the markup.
------------------
Linda Janes
-x-
[This message has been edited by Linda Janes (edited November 22, 2001).]
[This message has been edited by Linda Janes (edited November 22, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!