{"id":2865,"date":"2025-08-08T00:12:09","date_gmt":"2025-08-08T04:12:09","guid":{"rendered":"https:\/\/csimmons.dev\/blog\/?p=2865"},"modified":"2025-08-08T00:12:09","modified_gmt":"2025-08-08T04:12:09","slug":"revisiting-cfml-formatter-vscode-extension-with-cfformat-ignore","status":"publish","type":"post","link":"https:\/\/csimmons.dev\/blog\/2025\/08\/revisiting-cfml-formatter-vscode-extension-with-cfformat-ignore\/","title":{"rendered":"Revisiting CFML Formatter (VSCode extension) with cfformat-ignore"},"content":{"rendered":"<p>I&#8217;d like to revisit the CFML Formatter (VSCode extension) that I posted on not too long ago and mention the cfformat-ignore functionality.<\/p>\n<p>I had to work on some 15+ year old code today. I won&#8217;t say who wrote that code. <em>Cough<\/em> Me. <em>Cough<\/em> Embarrassing. Every time I saved a file the CFML Formatter was working overtime to try to figure out how to get the code formatted. Long story short there were a few blocks involving concatenation that ended up throwing errors after they were reformatted. Due to time constraints I needed to put a pin in figuring how to rewrite the offending blocks and just needed cfformat to ignore those blocks.<\/p>\n<p>In a nutshell there are 3 ways to do it depending on the block of code.<\/p>\n<h2>Tag Based<\/h2>\n<p><script src=\"https:\/\/gist.github.com\/ccsimmons\/f3fd125bbae2df83d01e62a1a90b1044.js\"><\/script><\/p>\n<h2>Script Based<\/h2>\n<p><script src=\"https:\/\/gist.github.com\/ccsimmons\/7e96cc6b76f12e110c29473bf9a285cb.js\"><\/script><\/p>\n<h2>Comment Block<\/h2>\n<pre>\n    \/* cfformat-ignore-start *\/\n    \/* Crazy, unformatted code here. *\/\n    \/* cfformat-ignore-end *\/\n<\/pre>\n<p><strong>Note: The special cfformat-ignore-start and cfformat-ignore-end comments must be at the same level of indentation within the file to work properly.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d like to revisit the CFML Formatter (VSCode extension) that I posted on not too long ago and mention the cfformat-ignore functionality. I had to work on some 15+ year old code today. I won&#8217;t say who wrote that code. Cough Me. Cough Embarrassing. Every time I saved a file the CFML Formatter was working &#8230; <a title=\"Revisiting CFML Formatter (VSCode extension) with cfformat-ignore\" class=\"read-more\" href=\"https:\/\/csimmons.dev\/blog\/2025\/08\/revisiting-cfml-formatter-vscode-extension-with-cfformat-ignore\/\" aria-label=\"Read more about Revisiting CFML Formatter (VSCode extension) with cfformat-ignore\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_cloudinary_featured_overwrite":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[68],"tags":[48,52,53],"class_list":["post-2865","post","type-post","status-publish","format-standard","hentry","category-developer","tag-coldfusion","tag-commandbox","tag-vscode"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pbVg43-Kd","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/2865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/comments?post=2865"}],"version-history":[{"count":0,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/2865\/revisions"}],"wp:attachment":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/media?parent=2865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/categories?post=2865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/tags?post=2865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}