Need an editor that can show mark up in one mode, and render in the other

Hello All
I would like to write an editor into which i can type text (strikes me as a good starting point), the text i enter will contain tags, which are intended to comply with a Wiki style, so for example (Assuming MediaWiki):
''italic'' would result in italic
'''bold''' would result in bold
'''''bold and italic''''' would be bold and italic*
The key being, that in editting mode the tags are shown, and in viewing mode the tags are hidden but the text is styled.
So, sort of exactly what >THIS< text pane does as well (though using other tags).
I'm guessing there are a few ways of doing that, i was thinking over ridding the HTMLEditorKit, but have no idea where to start, Then i considered Syntax highlighting (though that does not notionally get rid of tags in different modes, and in fact would be externally modeless). My latest idea runs along the lines of creating a Document of my own, and switching between plain and my custom document ... but i don't know where to start, and for some reason can not find any examples (and i'm sure i'd found some previously)...
Any idea where i could get some sample source code on how to do this?
Cheers, chakkerz
Edited by: chakkerz on Apr 25, 2008 3:14 PM

Actually, i've been thinking, and i do want to be able to fall back to HTML:
I would say that the best scenario would be as follows:
1) I can write my entire document using the Wiki notation
2) the notation is contained in a Resource Bundle, to allow for modification to individual taste, possibly [if implemented]
3) the Document / EditorKit / EditorPane is an extension of one that handles HTML, so if things get dire, and i want to put in something complicated like a table.
Which assumes that having effectively two languages HTML, plus an alternate markup language based on potentially dynamic tags, can be unified simply and painlessly.
The other argument in favour of the HTML extension would be that since i want to have Wiki type functionality, i will want to implement links to other documents, possibly subsections of the same document, which would appear simplest if i relied on something that already does links (but which i can not work out how to use yet either).
cheers, chakkerz

Similar Messages

  • I have 2 photo albums on my iPhone that i want to delete. One is called "Photo Library" the other is called "iPhonePics". I cannot delete any of the photos in either album. How do I delete the photos and/or the albums?

    I have 2 photo albums on my iPhone that i want to delete. One is called "Photo Library" the other is called "iPhonePics". I cannot delete any of the photos in either album. How do I delete the photos and/or the albums?

    You can uncheck multiple songs by selecting all the songs you want to uncheck, then right-click and choose "uncheck selection".  Also, make sure that you have checked "Sync only checked songs and videos" on the Summary tab of your iTunes sync settings or the sync process will ignore your selections.
    You can remove all the photos from your camera roll using Preview on your Mac.  Connect your phone to your Mac, open Preview, go to File>Import from iPhone.  When your photos appear in Preview, select the photos you want to delete, then click on the icon at the bottom showing the red circle with the diagonal line through it (see image below), then click Delete.
    To remove photos from the Photo Stream album on your phone you'll have to either reset Photo Stream (deleting all the photos from iCloud) or turn off Photo Stream on your phone.

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • Can I update more than one iPad and iPhone from the same MacBook pro?

    Can I update more than one iPad and iPhone to ios 5 from the same MacBook pro? Our family has one MacBook pro and several iphones and ipads.  No one wants to lose their iTunes music or contact list or calendars.

    Yes, but you will want to think it through before you do it.
    The computer will become the "master" device, holding the definitive collection of music, photos, contacts, etc., and each iPad or iPhone will get a copy of what's on the computer. So if  everyone has different collections of music or photos that you all want to keep separate from each other, you'll want to set up different accounts on the MacBook Pro. To do that, go into "System Preferences" and click "Users", then click the "+" to create a new account for each person who needs their own set of files.
    That way you can each log in to your own MacBook account before you sync your iPhone or iPad, and everyone has their own copy of iTunes and their own iPhoto. If you happen to plug in an iPhone while logged into someone else's account, you just click "don't sync" (the 1st time only, it will remember after that). Sharing the same files becomes tricky, so this is only the best method if you want to keep things 100% separate.
    On the other hand, if you all have your music and photos mishmashed together on the MacBook anyway or just don't care about keeping things separate, just go ahead and sync your iPhones and iPads without setting up new accounts. But in this case, you should create playlists and photo albums in iTunes and iPhoto. Then plug in an iPhone, click on it's icon in iTunes, and change the settings for Music, Photos, etc to only sync the playlists that you want on that device. Repeat for each one. They'll all remember their own settings, and continue to sync with their designated playlists or albums.
    What you cannot do is use more than one computer with a single iPhone. That will wipe out the music and photos that were on it already, replacing them with the ones on the second computer.

  • I have 2 ipad 2s.  On the newer one I can log in and update to IOS 5 with no problem.  On the older one I get the message "Your Apple ID has been disabled."  Why does it work on one ipad and not on the other?

    I have 2 ipad 2s.  On the newer one I could log in and update to IOS 5 withno problem.  On the older one I get the message "Your Apple ID has been disabled." No other explanation.  Why can I log in on one ipad and I'm disabled on the other?

    Well, I spoke too soon.  Yes, I'm using the same account on both iPads, but I just changed my password for the umpteenth time and now I get the disabled message on both iPads.  Just yesterday I was able to upgrade one to IOS 5 but got the error message on the other.  I'm getting more confused by the minute.

  • I want to install winXP to my iMAC running Lion OS.  I will use BootCamp.  My winXP uses 2 disks with XP on one CD and SP2 on the other.  Bootcamp seems to say use a one disk version.   What can I do about this paradox?

         I want to install winXP on my iMac.  It has OS 10.7.2 and uses a 27" display.  I will use Bootcamp and create a separate partion for winXP.  Bootcamp instructions call for a single disk winXP CD with Service Pack 2 on it.  My version has winXP on one disk and Service pack 2 on another.  Will this be a problem?  If it is, is there a solution?
                                                                            Tnx...K6jpj

    If you just bought an iMac a week ago new, it WILL NOT support XP unless XP is inside a virtual machine.  End of story.  You will need Windows 7 if you plan to run Windows natively on any Mac in 2011.
    Used models will run XP, though--from the Intel inception in '06 through the middle part of 2010.
    However, consider that Microsoft wants XP gone--and badly so--even as it is extending security hotfix support through April 2014.  This gives you two years and four months before you have to throw down for whatever's current at that time.
    Windows 7 will give you a much better experience (dare I say more Mac-like?) than XP, as it seems to be better organized.  The Taskbar, for instance, has become more like the OS X Dock in that you can "pin" things to it in a straightforward manner, unlike XP's seldom-used Quick Launch traybar. 
    7's also built to take advantage of all the snazzy new hardware you now have.
    But don't let me sell it to you.  It's really your call.
    Nate

  • I have XP on one machine and 7 on the other. Firefox 8 works perfectly on XP but my other machine is a disaster. I can not access the add ons at all and everything is gone: too many tabs-roboform whatever?????????????????

    It seems that the upgrade has destroyed the entire firefox experience. What is also strange is that the desktop image is coming through the top of the Firefox page.

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Jon already touched on this, but to use your "new" network, without NAT, the subnet needs to be "known".
    With NAT, you can place multiple hosts behind one (or several) IPs on your existing subnet.  I.e. you new subnet doesn't need to be known.  (In fact, you could use any subnet you want.)
    The reason the Linksys worked well yet the 2600 did not, "Enterprise" class routers generally don't handle PAT as well many consumer class routers.  (NB: True NAT would probably work just fine, but what you need is to overload an IP, i.e. PAT).  So, many applications won't work.  (NB: I believe newer IOS versions do better, though.)
    Many small Cisco Enterprise class routers, especially those from two generatations ago, were designed for "slow" WAN links, like single T1s or partial T1s, or perhaps for a few Mbps DSL.  If your link has more bandwidth the router may not have the performance to support it effectively.

  • I used the migrator utility to transfer music and picture from my old PC and now I have 2 accounts on my new Mac, how can I get back to one account and still have the music and photos transfered ?

    I used the migrator utility to transfer itunes and photos from my old PC to my new Mac and ended up with 2 accounts on my new computer. How do I transfer the music and photos and only have the 1 account on the new Mac ?

    That's not easy.  The Windows migration tool makes a new user account, and you can't prevent it.
    You may be able to transfer what you want manually, but it's not quick or easy.  See Transferring files from one User Account to another.

  • I use Comcast for email and my email downloads both on my iPad and on my macro which I want, but if I read and delete on either device it is not deleted on the other device. Anything I can do soma delete on one device deletes it on the other device?

    If I delete an email on my iPad it is not deleted on my macro. I wonder if anyone knows how to delete on one device and have the deletion concurrently work on the other device I use Comcast e mail.

    MikeBenton
    Jan 19, 2014 6:40 AM 
    Had problems sending emails from my iphone and ipad through Comcast. Apple could not solve the problem, contacted Comcast and they stated that they had issues with the Apple iphone and ipad and told me to download the "Xfinity connect ap" did so and everything works better than before.  When I used the Apple email had to trash what I did not want on Apple and then when I went to Comcast the email were still there.  Using the xfinity ap, when I delete on the iphone or the ipad the emails are deleted at all places.  Before I had to delete on my iphone and then my ipad and then when i went to my computer they were still there and I had to delete there also, which was a real pain. Still can send and rec email from my icloud account, but comcast email are handled through xfinity connect
    iMac, Mac OS X (10.7.4) 
    I have this question too (0) 
    Reply
    Tags: none (add)

  • Please help.  I have an image that appears darker on one page and lighter on the other

    The transparency blend space is cmyk on all and the image has no effects on it.  But when I move it from the one page to the other it goes from darker and more contrasted to lighter and less contrasted.  Copying and pasting as well as taking the original and replacing does the same thing.

    Is the image cmyk? It sounds like the image is RGB and that one page has transparency and the other doesn't, so it's only being affected by the flattener on one page.

  • Running Firefox 4.0 on Mac OSX 10.6.6, using ATT mail, when I create a new email I get a browser message saying, "This page requires a plugin that can only run in 32-bit mode," and I have to restart Firefox in 32-bit mode. Is there any way around this?

    I am assuming the plugin that the Firefox message is referring to is for attaching a file to the email. I say this because at the bottom of a new email it has a link that says "Attach files more easily" which, when you click it, takes you to a setup process where you download an att updater. I ran that and it did seem to change anything. I am wondering if there is anything I can do to make Firefox handle this page without having to restart in 32-bit mode every time.

    That means that you need to run Firefox in 32 bit mode if you want to use that plugin.
    # Close Firefox
    # Open the Applications folder in Finder
    # Right click or control-click the Firefox.app icon
    # Select "Get Info"
    # Select "Open in 32-bit mode"
    # Close the "Firefox Info" window
    # Restart Firefox

  • When I open the Firefox browser, there is a bar stating, "This page requires a plugin that can only run in 32-bit mode" and asks me if I want to restart the browser in 32-bit mode. What do you recommend I do? Thank you.

    I do not have any idea what plugin they are talking about.

    Previous versions of Firefox were only 32 bit, Firefox 4 for the Mac contains 32 and 64 bit versions. If you want to always start Firefox in 32 bit mode, open up Finder and go to the Applications folder. Control-click the Firefox app and click "Get Info", then select the "Open in 32-bit mode" option.

  • A music album is listed multiple times in my library but each listing only has a few songs in it-not the full listing.  How can I combine them into one album and get rid of other duplicate listings?

    Several music albums listed in my IPhone 5 music library are listed multiple times, but each one only has a portion of the songs listed.  How can I combine them to make one album?

    First....Thank you so much for your prompt reply.  I am sorry for not getting back to you regarding your suggestion-I had computer issues that just got resolved.  Also, this is my first foray into online chat rooms so I have a lot to learn to precisely state my issue!  I did as you suggested and all the songs list the same album when I go into each song's "get info".  However, I am not sure how to edit as you suggested. When I downloaded this album originally, for some reason it broke up into several albums each with different songs from the original album.  I am trying to consolidate them back into one album in my library.  I would greatly appreciate further assistance if you can.  Also, I do not use "the cloud" to store any data and would like a good source of info on how to do this.  Thanks so much for your patience!
    SueZoo

  • Can we buy iphone from one country and then change the service provider

    Hi,
    I wanted to know if I buy an iphone from india today can I change the service provider when i come to U.S.A. for my studies in Jan

    It seems to depend on the country where you bought your phone.
    In Australia, with a post-paid account I can have my carrier unlock the phone for free so I can use the phone on a pre-paid account in the States when I am there.
    My carrier here gets paid regardless as I am on a 24-month contract.

  • I can sign into iTunes with one user id, but not the other

    I am trying to update all apps.  I tried to sign in under my main id, and it says it cannot connect.  No error code.  I tried under my other id and it worked great.  What would cause my main id to not work?  Any suggestions would be appreciated.  I hope it's something easy that my brain just doesn't want to see.

    Go to Users/(your account)/Library/Preferences and delete com.apple.ichat.AIM.plist and restart iChat.
    10:15 PM Friday; January 11, 2008

Maybe you are looking for