[PATCH] syntax: html: remove the special highlighting of the b, i, and u elements
Hussam al-Homsi <[email protected]>
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <CAJebAKts0cY0+oFBDOCmz=CLmAjf5XCXDfTsbJx3G8RfLMwyTA@mail.gmail.com> |
Those elements usually have a stylistic effect, but in modern HTML they just have a semantic meaning. Also, they're not any more special than other elements that usually have a stylistic effect, such as the s element, which usually results in strike-through text. The HTML standard notes that "style sheets can be used to format b elements, just like any other element can be restyled. Thus, it is not the case that content in b elements will necessarily be boldened [1]." [1] https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-b-element
0001-syntax-html-remove-the-special-highlighting-of-the-b.patch
(text/x-patch, 899 B)
From 4870b1fa57b44bf35e82ccc69fb57d7003f99ad8 Mon Sep 17 00:00:00 2001 From: Hussam al-Homsi <[email protected]> Date: Mon, 26 Dec 2022 20:34:53 -0500 Subject: [PATCH] syntax: html: remove the special highlighting of the b, i, and u elements They don't necessarily represent bold, italic, or underlined text, and they're not any more special than, say, the s element. They're now highlighted just like any other element. Signed-off-by: Hussam al-Homsi <[email protected]> --- syntax/html.nanorc | 2 -- 1 file changed, 2 deletions(-) diff --git a/syntax/html.nanorc b/syntax/html.nanorc index 7a099de9..e011228e 100644 --- a/syntax/html.nanorc +++ b/syntax/html.nanorc @@ -8,8 +8,6 @@ formatter tidy -m -q # Tags: color cyan "<[[:alpha:]/!?][^>]*>" -# Bold, italic, and underlined: -color brightmagenta "</?[biu]>" # Named character references: color red "&[^;[:space:]]*;" -- 2.34.1