tracker issue : CFB-3793735

select a category, or use search below
(searches all categories and all time range)
Title:

Code coloring with CFScript

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Justin Treher / j_treher (Justin Treher)

Created: 07/23/2014

Components: Editor Features

Versions: 2016,3.0,2018

Failure Type: Usability Issue

Found In Build/Fixed In Build: 3.0 Final / 312450

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win All

Vote Count: 6

Problem Description:
Code coloring with cfscript dysfunctional after CFB 3 Update 2. 

Below is one of many ways to break it. It seems to forget to "refresh" syntax coloring after syntax errors (converting cftags to cfscript), copy paste blocks of code, // comments (sometimes), accidental cfml style comment, etc. It's really annoying and I'm encountering it every couple of minutes working in mixed cfml / cfscript components.

Steps to Reproduce:
<cfcomponent>
<cffunction name="test" >
<cfscript>
// copy and paste the body of this cfscript and you will see coloring break on paste, which
// breaks the rest of the file. Just one of the ways to break color coding.
// Also try to use a single apostrophe to break color coding
if( ! len( strInput ) ){
return '';
}
 
// this function expression is here to test if ColdFusion creates a separate class.
 
</cfscript>
</cffunction>
</cfcomponent>



Any Workarounds:
Delete the closing bracket of the opening cfscript tag and retype. Also, close and reopen the file.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3793735

External Customer Info:
External Company:  
External Customer Name: j_treher
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Also, a single quote will break comments // this line, it's crazy, am I right?
Comment by External U.
26896 | July 23, 2014 12:55:23 PM GMT
I've verified this as well.
Comment by External U.
26897 | July 23, 2014 01:16:25 PM GMT
Minimal amount of characters so I can vote. We need to remove this requirement. If I want to vote up a bug, it is obvious I support it, forcing me to say so is annoying. And yes, I realize I've now spent more than 25 characters on this, but it bugs me.
Vote by extuser
26899 | July 24, 2014 01:47:08 AM GMT
color coding is broken across many different scenarios, cfscript, cftags, comments, etc...
Vote by extuser
26900 | July 29, 2014 11:54:55 PM GMT
Please fix. This is a consistent bug across updates.
Vote by extuser
26901 | August 02, 2014 01:33:58 AM GMT
"color coding is broken across many different scenarios, cfscript, cftags, comments, etc..."
Vote by extuser
26902 | August 12, 2015 04:25:15 AM GMT
Issue is fixed in CFB 2016 and fix will be available by Update 2 (Comment added from ex-user id:prk)
Comment by Adobe D.
26898 | May 10, 2016 05:48:17 AM GMT