Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Fix to use closeTag in brackets and addon for closeElement #76

merged 4 commits into from

2 participants

Dimitar S. Raymond Lim
Dimitar S.

This fix in the addon is needed so i could implement closeTag in brackets

The second commit is addon for autoclosing Parentheses, Brackets, and Braces

Dimitar S.

This file is addon that will allow autoclosing on elements like ( ," , [, {.
Please implement this so i can enable that in brackets.

Raymond Lim

@deemeetar You're adding a new file into CodeMirror. So would you please submit your new file into upstream first since you're the original author of the new file?

And leave this pull request for the changes you made into closeTag.

Dimitar S.

Do you mean i should submit this file first to CodeMirror2 original project?

Dimitar S. deemeetar closed this
Dimitar S. deemeetar reopened this
Raymond Lim

Yes, you need to submit the new file to CodeMirror project first and keep this pull request with the change you made to closetag.js so that I can merge with your other pull request for auto closing tag.

Dimitar S. deemeetar referenced this pull request in adobe/brackets

Close html tags #1454

Dimitar S.

Ok i removed the new file from here.

Dimitar S. deemeetar referenced this pull request in adobe/brackets

added autoclosing of elements like ( , [, " #1457

Raymond Lim

Looks good. Merging it for now.

We may need to remove this when we integrate v3 from CodeMirror since there is a different fix in the upstream.

Raymond Lim RaymondLim merged commit 1881b80 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 27, 2012
  1. Dimitar S.
  2. Dimitar S.
  3. Dimitar S.

    cleaning up

    deemeetar authored
Commits on Sep 14, 2012
  1. Dimitar S.

    removed new file

    deemeetar authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/util/closetag.js
2  lib/util/closetag.js
@@ -41,7 +41,7 @@
var mode = cm.getOption('mode');
- if (mode == 'text/html' || mode == 'xml') {
+ if (mode == 'text/html' || mode == 'xml' || mode == 'htmlmixed') {
* Relevant structure of token:
Something went wrong with that request. Please try again.