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

Support for VB syntax #5072

Closed
ghost opened this issue Sep 5, 2013 · 6 comments
Closed

Support for VB syntax #5072

ghost opened this issue Sep 5, 2013 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 5, 2013

Hi,

CodeMirror has support for VB syntax, something unusual for non-Windows editors. To enable it, the following snippet should be appended to languages.json file:

"vb": {
"name": "VB",
"mode": ["vb", "text/x-vb"],
"fileExtensions": ["vb"],
"lineComment": ["'"]
}

@redmunds
Copy link
Contributor

redmunds commented Sep 5, 2013

@demomm That was recently added in pull request #5010, but data is slightly different:

    "vbscript": {
        "name": "VBScript",
        "mode": "vbscript",
        "fileExtensions": ["vbs"],
        "lineComment": ["'", "REM"]
    }

Should "vb" be added as a file extension?

@ghost
Copy link
Author

ghost commented Sep 5, 2013

Hi,

No, since it uses another mode.

@redmunds
Copy link
Contributor

redmunds commented Sep 5, 2013

Gotcha. Care to submit a pull request?

@ghost
Copy link
Author

ghost commented Sep 6, 2013

Sure, but not until later in the weekend.

@gruehle
Copy link
Member

gruehle commented Sep 16, 2013

Reviewed, marked as "starter bug".

micole added a commit to micole/brackets that referenced this issue Oct 23, 2013
redmunds added a commit that referenced this issue Oct 31, 2013
Fixes issue #5072 by adding vb as a language
@ghost ghost assigned redmunds Oct 31, 2013
@redmunds
Copy link
Contributor

Fixed. Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants