From 3f7dedfeb7edc97588bf58ae802a0b033a0c20f8 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 19 Jun 2015 19:59:54 -0300 Subject: [PATCH] Add CSS to languages that are auto-indented Possible fix for https://github.com/notepad-plus-plus/notepad-plus-plus/issues/257 Needs testing. Someone that can compile Npp, please test this! --- PowerEditor/src/Notepad_plus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index a0b63698..aadbf75e 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2361,7 +2361,7 @@ void Notepad_plus::maintainIndentation(TCHAR ch) LangType type = _pEditView->getCurrentBuffer()->getLangType(); if (type == L_C || type == L_CPP || type == L_JAVA || type == L_CS || type == L_OBJC || - type == L_PHP || type == L_JS || type == L_JSP) + type == L_PHP || type == L_JS || type == L_JSP || type == L_CSS) { if (((eolMode == SC_EOL_CRLF || eolMode == SC_EOL_LF) && ch == '\n') || (eolMode == SC_EOL_CR && ch == '\r'))