Live Reload with Jeykll and Hawkins

While struggling to write a different post, I procrastinated by deciding that, to boost my productivity, I needed the preview of the post to live-reload. It was actually really easy to set up (and it’s very cool to use).

Continue Reading

CFScript Syntax Highlighting with Rouge!

This is just an update on the cfscript lexer for Rouge. Here’s the TLDR: It’s available! Want to get started? Read on.

Continue Reading

Working on a CFScript Rouge Lexer

Well, I submitted by PR for adding CFScript to Rouge, so we’ll see how that turns out. I only worked on CFScript - I don’t have much use for tag highlighting, at present, and that kept the scope of the project more manageable. I was pretty happy with the result, though it did take more time than I had anticipated. CFML certainly has its quirks, and I even stumbled across a few operators that I was unaware of.

Continue Reading

TIL - callStackGet()

This wasn’t supposed to be long post - just a quick write-up on a helpful function that I stumbled upon. It never ceases to amaze me when I encounter an aspect of ColdFusion (function, feature, tool, etc) that’s new to me, but has been around for years. This time, the function is callStackGet(), which was apparently introduced in ColdFusion 10, but I had never encountered before.

Continue Reading

Using AntiSamy with ColdFusion 11

We recently had the need to validate rich text input in one of our applications. In the past we’ve rolled our own validation, using various regex strings. While this worked, we’re always looking for better ways to solve problems, which is why I was intrigued to find the isSafeHTML and getSafeHTML functions. These were added in ColdFusion 11, but I had not heard of them. While we ultimately didn’t end up using them, that’s how I fell down this particular rabbit hole.

Continue Reading