Title:
Placing or typing single line comment does not recognize color code preference while editing
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Robert Mann / heisrmann (Robert Mann)
Created: 08/06/2014
Components: Editor Features
Versions: 3.0
Failure Type:
Found In Build/Fixed In Build: 3.0 Final / 294278,
Priority/Frequency: Major / All users will encounter
Locale/System: English / Windows 8.1/64bit
Vote Count: 1
Problem Description:
Within cfscript of my components/functions I typically enter a single line comment to document about line(s) of code that follow it. In version 2 it worked as expected. In version 3, I may have not spent enough time writing code to recognize the issue. I have since applied update 3, and it's possible that this bug is based on the recent update.
Steps to Reproduce:
1 Create new component.
2 Write new function
3 Create cfscript and begin writing code
4 Type // for a single line comment
Actual Result:
Color code behaves like text and does not change characteristics.
Color code below intended comment also is impacted.
<cffunction name="testThis" access="public" returntype="struct">
<cfargument name="NumberID" type="numeric" required="true">
<cfset var objReturn = StructNew()>
<cfset var strThis = "">
<cfscript>
// test if true
if (1 == 1) {
strThis = 'foo' ;
}
// another comment
//
//
</cfscript>
<cfreturn objReturn />
</cffunction>
Expected Result:
As I enter // for a single line comment the color code should be enabled and not affect other parts of the code.
In my case I have the format to highlight yellow and change the font color to grey.
Any Workarounds:
When opening the file, all is well. So I close the file and re-open it.
Another work around while editing is to copy the entire cfscript or cffunction and replace (paste) itself. This make the corrections, as I assume the editor properly renders based on the paste.
You will see if you copy my code example, it behaves as expected. But if you add new comments the color coding becomes broken again.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3801205
External Customer Info:
External Company:
External Customer Name: heisrmann
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 8.1 (64 bit)
Adobe® ColdFusion® Builder™ 3
Version: 3.0.0
Build: 290423
Attachments:
Comments: