Search code examples
markdownadobe-bracketsgithub-flavored-markdown

Adobe-Brackets, Change the default syntax for a file extension


I am using the Adobe Brackets text editor.

I can't seem to find an answer for changing the default syntax to be used with certain file extensions (file-ext). In my case, I would like to change the default markdown syntax to instead use the included "Markdown (Github)" syntax. I assumed that there was an option somewhere to control this, as when I go to change the language manually, whilst editing a file, in the selection menu "Markdown" has the word Default afterwards.

How can I change the default syntax per file extension?


Solution

  • In the very top of that "File type selection" there is an option to set the current as default: Set language Default

    Alternatively, you can map file extensions (and file names) to existing languages in the preferences:

    {
        "language.fileExtensions": {
            "md": "gfm"
        }
    }
    

    Note: This is valid for at least the latest version of Brackets (1.4).