Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Updated getModeFromFileExtensions to let cfm and cfc files use the html editor #1138

Merged
merged 1 commit into from
Jun 26, 2012

Conversation

pfreitag
Copy link
Contributor

This will make any ColdFusion developers experience with brackets much much better, currently if you open a cfm or cfc file it is unstyled. I know this project is not aimed supporting server side coding right now but I think this change (two lines of code added) is hopefully a no brainer.

…ml editor. This will make any ColdFusion developers experience with brackets much much better.
@ghost ghost assigned peterflynn Jun 26, 2012
@peterflynn
Copy link
Member

Looks good -- the highlighting is definitely imperfect, but it's clearly better than nothing.

The biggest problem seems to be around CF tags that don't require a close tag -- you get a lot of close tags highlighted in red because CodeMirror thinks you skipped one. The HTML highlighter has a hardcoded list of the tags it expects to have no closing tag, and unfortunately it doesn't look like the list is configurable (see the top of xml.js). It would be an awesome contribution back to CodeMirror to add config options for that, and then you could leverage it to improve the CF highlighting. Interested? :-)

This is certainly a reasonable start though. I'll merge it now.

peterflynn added a commit that referenced this pull request Jun 26, 2012
Use generic HTML highlighting for ColdFusion .cfm and .cfc files
@peterflynn peterflynn merged commit f30f8a1 into adobe:master Jun 26, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants