sublime-text-plugin icon indicating copy to clipboard operation
sublime-text-plugin copied to clipboard

I want to change <html lang="en"> to <html lang="ja">.

Open miracle777 opened this issue 2 years ago • 2 comments

I am using Sublime text4. I am using Emmte. I am using Emmte! and then ctrl+e to expand the HTML document template.

I want to change

<html lang="en"> to <html lang="ja">.

But I can't change it by any method I can find on the net. In my case, I have settings, but no settings-user. So, even if I enter the following code into Emmet.sublime.settings.

I would appreciate it if you could tell me where I can modify it to change it to ja. Thank you in advance.

{ "snippets": { "variables": { "lang": "ja", "locale": "ja-JP", "charset": "UTF-8",, "newline": "\n", "indentation": "\t" } } } `

miracle777 avatar Sep 28 '22 12:09 miracle777

See https://github.com/emmetio/sublime-text-plugin#adding-custom-emmet-snippets

You can update variables like so:

{
    "config": {
        "markup": {
            "variables": {
                "lang": "ja"
            }
        }
    }
}

sergeche avatar Sep 28 '22 12:09 sergeche

Thank you very much. It's done. I appreciate it very much.

miracle777 avatar Sep 28 '22 13:09 miracle777