emmetio / sublime-text-plugin

The essential toolkit for web-developers
https://emmet.io
MIT License
253 stars 29 forks source link

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

Open miracle777 opened 2 years ago

miracle777 commented 2 years ago

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" } } } `

sergeche commented 2 years ago

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

You can update variables like so:

{
    "config": {
        "markup": {
            "variables": {
                "lang": "ja"
            }
        }
    }
}
miracle777 commented 2 years ago

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