Add <hr> to HTML’s outline

This commit is contained in:
1024jp 2022-05-02 22:03:39 +09:00
parent 9cffc0d266
commit 3c238d5994
4 changed files with 9 additions and 2 deletions

View File

@ -12,6 +12,7 @@ Change Log
### Improvements
- Update HTML syntax style to display `hr` elements as separators in the Outline.
- Restore the file encoding the user explicitly set in the last session.
- [trivial] Enable the secure state restoration introduced in macOS 12.
- [dev] Update Yams from 5.0.0 to 5.0.1.

View File

@ -58,6 +58,7 @@
<li>Adjust the vertical position of line numbers on printing.</li>
<li>Restore the characters even incompatible with the document encoding when restoring documents from the last session.</li>
<li>Display code points instead of being left blank in the incompatible character list for whitespaces.</li>
<li>Update HTML syntax style to display `hr` elements as separators in the Outline.</li>
<li>Add steppers to the font setting controls.</li>
<li>Restore the file encoding to one the user explicitly set in the last session.</li>
<li>Prefer using .yml for syntax definition files over .yaml.</li>

View File

@ -58,6 +58,7 @@
<li>プリント時の行番号表示位置を調整</li>
<li>最後のセッションから書類を復帰するときに書類のテキストエンコーディングで非互換な文字も復帰</li>
<li>非互換文字リストで空白文字が非互換のときに空欄でなくその制御文字のコードポイントを表示</li>
<li>HTMLシンタックススタイルを更新して<code>hr</code>要素をアウトラインで区切り線として表示</li>
<li>フォント設定コントロールにステッパーを追加</li>
<li>前回のセッションでユーザが明示的にエンコーディングを変更したときは、そのエンコーディングに復帰するように</li>
<li>シンタックススタイル定義の標準の拡張子を.yamlから.ymlに変更</li>

View File

@ -5,9 +5,9 @@ extensions:
metadata:
author: "1024jp"
distributionURL: "https://coteditor.com"
version: "2.1.2"
version: "2.1.3"
license: "Same as CotEditor"
lastModified: "2022-03-30"
lastModified: "2022-05-02"
outlineMenu:
- beginString: "<(h1)[^>]*>(.*)</\\1[^>]*>"
description: "h1"
@ -37,6 +37,10 @@ outlineMenu:
description: "title"
ignoreCase: true
keyString: "$1: $2"
- beginString: "<hr */?>"
description: "hr"
ignoreCase: true
keyString: "-"
bold: true
completions:
- keyString: "&amp;"