[gnome-builder] beautifier plugin: add config for HTML tidy
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] beautifier plugin: add config for HTML tidy
- Date: Thu, 12 Jan 2017 22:25:48 +0000 (UTC)
commit 3cd0df92f2d68564b05b0bed67dc13c634f5cd5f
Author: Sebastien Lafargue <slafargue gnome org>
Date: Mon Dec 5 23:17:18 2016 +0100
beautifier plugin: add config for HTML tidy
plugins/beautifier/Makefile.am | 31 ++++++++++++----------
plugins/beautifier/data/html/config.ini | 17 ++++++++++++
plugins/beautifier/data/html/tidy-autoindent.cfg | 22 +++++++++++++++
plugins/beautifier/data/html/tidy-indent.cfg | 22 +++++++++++++++
4 files changed, 78 insertions(+), 14 deletions(-)
---
diff --git a/plugins/beautifier/Makefile.am b/plugins/beautifier/Makefile.am
index e20b1fa..5a927f3 100644
--- a/plugins/beautifier/Makefile.am
+++ b/plugins/beautifier/Makefile.am
@@ -33,20 +33,23 @@ nodist_libbeautifier_plugin_la_SOURCES = \
$(NULL)
resourcedir = $(datadir)/gnome-builder/plugins/beautifier_plugin
-nobase_resource_DATA = \
- data/global.ini \
- data/c/config.ini \
- data/c/gnu-indent.cfg \
- data/c/k&r.cfg \
- data/c/linux-kernel.cfg \
- data/c-sharp/config.ini \
- data/c-sharp/mono.cfg \
- data/d/config.ini \
- data/d/d.cfg \
- data/objc/config.ini \
- data/objc/objc.cfg \
- data/python/config.ini \
- data/xml/config.ini \
+nobase_resource_DATA = \
+ data/global.ini \
+ data/c/config.ini \
+ data/c/gnu-indent.cfg \
+ data/c/k&r.cfg \
+ data/c/linux-kernel.cfg \
+ data/c-sharp/config.ini \
+ data/c-sharp/mono.cfg \
+ data/d/config.ini \
+ data/d/d.cfg \
+ data/html/config.ini \
+ data/html/tidy-autoindent.cfg \
+ data/html/tidy-indent.cfg \
+ data/objc/config.ini \
+ data/objc/objc.cfg \
+ data/python/config.ini \
+ data/xml/config.ini \
$(NULL)
EXTRA_DIST += $(nobase_resource_DATA)
diff --git a/plugins/beautifier/data/html/config.ini b/plugins/beautifier/data/html/config.ini
new file mode 100644
index 0000000..60cf079
--- /dev/null
+++ b/plugins/beautifier/data/html/config.ini
@@ -0,0 +1,17 @@
+# HTML language config file
+
+[global]
+
+default = tidy-ident
+
+[tidy-noident]
+
+command-pattern = tidy -config @c@ @s@
+config = tidy-autoindent.cfg
+name = HTML tidy auto indent
+
+[tidy-ident]
+
+command-pattern = tidy -config @c@ @s@
+config = tidy-indent.cfg
+name = HTML tidy indent
diff --git a/plugins/beautifier/data/html/tidy-autoindent.cfg
b/plugins/beautifier/data/html/tidy-autoindent.cfg
new file mode 100644
index 0000000..ac198fa
--- /dev/null
+++ b/plugins/beautifier/data/html/tidy-autoindent.cfg
@@ -0,0 +1,22 @@
+// sample config file for HTML tidy
+indent: auto
+indent-spaces: 2
+wrap: 72
+markup: yes
+output-xml: no
+input-xml: no
+show-warnings: yes
+numeric-entities: yes
+quote-marks: yes
+quote-nbsp: yes
+quote-ampersand: no
+break-before-br: no
+uppercase-tags: no
+uppercase-attributes: no
+char-encoding: latin1
+new-inline-tags: cfif, cfelse, math, mroot,
+ mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
+ munder, mover, mmultiscripts, msup, msub, mtext,
+ mprescripts, mtable, mtr, mtd, mth
+new-blocklevel-tags: cfoutput, cfquery
+new-empty-tags: cfelse
diff --git a/plugins/beautifier/data/html/tidy-indent.cfg b/plugins/beautifier/data/html/tidy-indent.cfg
new file mode 100644
index 0000000..f0af220
--- /dev/null
+++ b/plugins/beautifier/data/html/tidy-indent.cfg
@@ -0,0 +1,22 @@
+// sample config file for HTML tidy
+indent: yes
+indent-spaces: 2
+wrap: 72
+markup: yes
+output-xml: no
+input-xml: no
+show-warnings: yes
+numeric-entities: yes
+quote-marks: yes
+quote-nbsp: yes
+quote-ampersand: no
+break-before-br: no
+uppercase-tags: no
+uppercase-attributes: no
+char-encoding: latin1
+new-inline-tags: cfif, cfelse, math, mroot,
+ mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
+ munder, mover, mmultiscripts, msup, msub, mtext,
+ mprescripts, mtable, mtr, mtd, mth
+new-blocklevel-tags: cfoutput, cfquery
+new-empty-tags: cfelse
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]