tracker issue : CFB-4152897

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

Syntax Coloring Issues

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Daniel Budde / Daniel Budde (Daniel Budde)

Created: 05/13/2016

Components: Preferences

Versions: 2016,2018

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: CFB2016_Final / 3.2.1 313106

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Mac 10.11

Vote Count: 9

Problem Description:
There are 2 problems in Syntax Coloring/Highlighting.

1) Built in ColdFusion functions are not highlighting.
2) The code within <cfif> tags does not highlight correctly.  It should highlight as if it is between <cfscript> tags.


Steps to Reproduce:
Open the included 'index.cfm' file in CFBuilder to see the highlighting.  I have included a screen shot of what I see.

Actual Result:
1) ColdFusion function go to the default color of the area they are typed in.
2) The code within the <cfif> tag takes on the attribute coloring.

Expected Result:
1)  For there to be a separate highlight option for recognized CF Functions.
2)  For the code inside the <cfif> tag to appear as code does inside of <cfscript> tags.

Any Workarounds:
None that I am aware of.

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

Watson Bug ID:	4152897

Reason:	BugVerified

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

iMac

OSX X 10.11.4

Attachments:

Comments:

Daniel, Can you please attach a sample test case for the following - Built in ColdFusion functions syntax highlighting issue - <cfif> tag syntax highlighting issue Also if you have screen-shots available for the same, please also attach those as well Thanks Subir
Comment by Subir J.
26434 | June 06, 2016 01:12:58 AM GMT
Daniel, Just a reminder note to provide requested details. Regards Subir
Comment by Subir J.
26435 | August 10, 2016 07:03:29 AM GMT
I have attached 3 example files and 3 screen shots. Here is a breakdown of the problems I see starting with 'index.cfm'. - Line 1: Missing CF function highlighting for 'getCurrentTemplatePath()'. - Line 3: Missing CF function highlighting for 'findNoCase()'. - Line 4: Missing highlighting for boolean values. - Line 6: Missing highlighting for boolean values. - Line 9: Missing CF function highlighting for 'structKeyExists()'. - Line 10: Missing CF function highlighting for 'fileRead()'. Now for 'ex2.cfm': - Line 1: <cfif> statements should display their code as if the code was between <cfscript> tags. CF based keywords are not recognized (eq, or), boolean does not have highlighting, number does not have highlighting, and the CF function 'isJSON()' is not highlighted as a CF specific function. - Line 2: Boolean is not highlighted. Now for 'htmlValidatorService.cfc'. There are more problems in this file than what I am going to point out, but what I do point out will give you the general idea: - Line 20: Keyword 'boolean' not highlighted. The default value of 'false' is also not highlighted as a boolean value. - Line 22: 'false' value is not highlighted as a boolean. - Line 29: Missing CF function highlighting for 'writeOutput()'. - Line 30: Missing CF function highlighting for 'writeOutput()'. - Line 31: Missing CF function highlighting for 'writeOutput()'. - Line 36: Missing CF function highlighting for 'cfhttp()'. - Line 38: Missing CF function highlighting for 'cfhttpparam()'. - Line 39: Missing CF function highlighting for 'cfhttpparam()'. - Line 43: Missing CF function highlighting for 'isJSON()'. - Line 45: Missing CF function highlighting for 'structAppend()' and 'deserializeJSON()'. - Line 47: Missing CF function highlighting for 'structKeyExists()' and 'isArray()'. - Line 49: 'true' value is not highlighted as a boolean. I hope these examples are sufficiently helpful.
Comment by External U.
26436 | August 10, 2016 10:14:57 AM GMT
Can confirm this behavior is occurring on my Mac as well in CFBuilder 3.
Vote by extuser
26437 | August 10, 2016 10:54:03 PM GMT
Same here, CFBuilder 3 on Mac is not highlighting correctly.
Vote by extuser
26438 | August 10, 2016 10:56:08 PM GMT
I see similar issues running ColdFusion Builder on Windows. While two of the examples are okay (index.cfm and ex2.cfm) the third example (services.cfm) is also not highlighting correctly. It looks much the same as Daniel's screenshot. Please fix this.
Vote by extuser
26439 | August 11, 2016 01:23:37 AM GMT
I am seeing the same issue.
Vote by extuser
26440 | August 11, 2016 01:58:51 AM GMT
This is not just a "Cosmetic Issue", it's a "Usability Issue" as in any good IDE, unexpected color changes usually tells the user something is wrong with syntax or something else. When will this be taken seriously and fixed?
Vote by Phill N.
26441 | February 16, 2017 07:59:08 PM GMT
Hi Adobe, The syntax coloring issue is not limited to <cfif>. The issue affects any attributeless CFML tag that takes an expression. Examples: <cfif>, <cfelseif>, <cfset>, <cfreturn>. I see this ticket is currently "Fixed/To Test". Can you please confirm that you're also fixing <cfelseif>, <cfset>, <cfreturn> etc (not just <cfif>)? And can that confirmation please be done via a *publicly-visible* comment? Thanks!, -Aaron P.S. Could you please fix the attachment links? All the .cfm and .cfc attachment links currently return a "Tracker Next" HTML file.
Comment by Aaron N.
29479 | August 12, 2018 05:58:12 AM GMT
This ticket's image attachments are also not rendering. Can all the attachment links please be fixed?
Comment by Aaron N.
29480 | August 12, 2018 06:00:47 AM GMT
+1 - Please prioritize formatting and colorization tickets. There should be zero issues w/ those.
Vote by Aaron N.
29481 | August 12, 2018 06:02:33 AM GMT