Answer the question
In order to leave comments, you need to log in
Notepad++ and Emmet auto-indent stops working when changing tab to double space. How to fix?
While the indentations are tabulated, "!" expands to:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
I found the solution myself:
in Notepad++\plugins\EmmetNPP\editor.js I
replaced
editorProxy._syntax = syntax;
var indentation = '\t';
if (!e.getUseTabs()) {
indentation = r('utils').repeatString(' ', +e.getIndent());
}
on theeditorProxy._syntax = syntax;
var indentation = ' '; // \t
/* if (!e.getUseTabs()) {
indentation = r('utils').repeatString(' ', +e.getIndent());
} */
that is, replaced "\t" with a double space and commented out the condition. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question