DRÄ Studio

Pixel pushing and pencil shavings

Home Blog Projects Wallpapers Themes Fonts

Blog

Coloring DTD in Coda

Posted on Wednesday, June 3rd, 2009 under Code Design Downloads | 1 comment

Coloring DTD in Coda

During the DFP lab session yesterday, Norm and my students were having issues validating their XML data files using a couple of the services we normally recommend. Namely, their XML files were showing no errors, despite adding intentional mal-formed tags and whatnot.

It just so happened that Norm was reading through one of FlashTuts newer posts about different methods for setting up a Flash Development Sandbox and discovered a great Eclipse plugin for writing and validating XML documents, called XMLBuddy. If you download the 3.1 version, it works pretty seamlessly with the current Flex Builder environment ... so well in fact, that it lead to me writing a Document Type Declaration (DTD) that our students could use as a schema to validate their first project's data file against.

Since Panic's beautiful Coda app has been my code environment as of late, and since I like my code to be wonderfully colored, I decided to try my hand at writing a Syntax Mode for DTDs. Coda's syntax coloring is built on SubEthaEdit's "Mode" model, so it really wasn't too difficult. Regular Expressions are still a bit of a mystery to me, but with Grant Skinner's RegExr AIR app handy and Ruby's yummy <regex> being used, it worked out nicely.

If you've got any DTD writing planned in the future, feel free to grab a copy of the syntax mode file and enjoy! It get installed here: ~/Library/Application Support/Coda/Modes/

Coda Coloring Mode - DTD

Also, if you are in need of a great (and free!) Mac app that parses and validates your XML files, check out Validator by Robert Crews. Nifty indeed.

Related Posts:

Coloring Coda like Textmate
In my ongoing attempt to fall more and more in love with the “One-Window Web Development” amazingness that is Panic’s Coda app, I have reached another yet milestone. I present to you the following Syntax Modes, re-colored to match the ever-popular Textmate “Twilight” theme:ActionScriptCSSHTMLJavascriptJSP-HTMLPHP-HTMLXMLCoda Coloring Theme - "Twlight"In case you are wondering, the font I ...
Adding More Coda Books – Version 1
After Sitepoint showed us all how easy it is to add custom references to the "Books" section of Coda (using their excellent HTML and CSS references as examples), I began my search for even more handy code guides with which to fill out that big empty gray space at Command+6. Jon Hicks had some good stuff ...
Flex Builder is evil about Undos
While creating an example AS3 file for our Deployment of Flash Projects class just now in Flex Builder, I almost found myself in an absurd "the-files-are-missing" predicament that we hear about every now and then from our students. Turns out some of it may not be so absurd ... While Flex Builder allows for multiple Undos ...
Enabling AIR Code Completion in an AS3 Project
One of the problems Norm and I have found with our DFP students building ActionScript 3 projects in Flex Builder is that any AIR-specific code that is implemented lacks code-completion and error-resolving. A really simple solution, though, is including the Global AIR SWC in the project's Library. You can follow along with the video for ...
Backup Delight
Looking for ways to get the most use out of Mac OS X Spotlight technology? Here is one of my favorites: Backing up Files Whenever I make a new backup CD, I use a great little application called Print Window to create a PDF folder list of the files on that CD. I do this with all ...
  • http://www.gnomecorp.com Aurélien consultant

    Thx for this tips, it is going to be useful for me.

 

Back to Top