Lorem Ipsum ColdFusion Builder Extension

ColdFusion Builder is an incredibly powerful tool, and the ability to extend the IDE with custom-written extensions enhances the power of the application.

The Requirement

Whilst working on some site content earlier, a few pages were still waiting for new copy to be written. As a typical fallback plan, I added in some dummy text to fill the void - I normally visit the official www.lipsum.com site to generate the required dummy text for me, then copy and paste it into my editor.

As a ColdFusion Builder user, I wondered if there was an extension available to work with Lipsum data, to help alleviate the repetitive task of cut/copy and paste (or simply hammering the keyboard to generate random nonsense).

After having a quick search on riaforge.org (the first place every developer should check before starting development on a plugin or component package from scratch), I noticed there wasn't a ColdFusion Builder extension available to automatically generate the dummy text.

The Solution

There was, however, a CFC called CFLipsum developed by Tim Blair that interacted with the lipsum.com XML feed to generate the dummy text. Tim's CFC did a fantastic job as a self-contained component package.

Using Tim's CFC as a starting point (you have to love the CF community and sharing code), I developed a quick but fully functioning CF Builder extension that will insert the generated dummy text directly into the code editor window at the current position of the cursor.

Once installed, the extension is accessible by right-clicking anywhere within the editor window and selecting the 'Lipsum Generator' menu option:


At this point, the user will be shown an option screen to choose how they want the dummy text returned:


The first option, a simple boolean 'yes'/'no' selection, lets the user decide if they would like the returned text to start with the traditional 'Lorem Ipsum...'. Purely cosmetic, but for those who cannot bear to be without those two words, this option is for you. :)

The second option lets you choose in which format you would like the returned text;

Option three then lets you choose either how many words or paragraphs to return, or if 'bytes' was selected in the previous option, how many bytes of text to be returned.

Finishing the selection and clicking 'ok', the extension will then insert the text directly into the editor window, complete with <p> tags:


A simple extension, but one that I hope will help others along the way. It's effective, saves time, and built in ColdFusion, so it must be good. Right? Right!

Where can I get it from?

The Lipsum Generator extension is available to download now from RIA Forge:


comments powered by Disqus