From: Benno Schulenberg Date: Sat, 22 Feb 2014 18:57:24 +0000 (+0000) Subject: Better colouring expressions for HTML. X-Git-Tag: v2.3.3~337 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=10a18c141b3fe595239187b0131fa5ac6c185b03;p=nano.git Better colouring expressions for HTML. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4593 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index e246f297..b2ced542 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-02-22 Lauri Kasanen (tiny change) + * doc/syntax/html.nanorc - Also recognize htm as extension, + use cyan for tags (more visible on dark background), correct + the expression for ampersand codes, and colour strings too. + 2014-02-22 Dennis Jenkins (tiny change) * doc/syntax/c.nanorc - Also recognize c++ as extension. diff --git a/doc/syntax/html.nanorc b/doc/syntax/html.nanorc index c94bfec9..5066da44 100644 --- a/doc/syntax/html.nanorc +++ b/doc/syntax/html.nanorc @@ -1,6 +1,7 @@ ## Here is a short example for HTML. ## -syntax "html" "\.html$" +syntax "html" "\.html?$" magic "HTML document text" -color blue start="<" end=">" -color red "&[^;[[:space:]]]*;" +color cyan start="<" end=">" +color red "&[^;[:space:]]*;" +color green ""(\\.|[^"])*""