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: