Allow OS to define config highlighting (pfSense) (#10392)

* Update showconfig.inc.php

Fix display for pfsense config files.

* Update showconfig.inc.php

Change from else if to elseif

* Update showconfig.inc.php

Decode special chars before syntax highlighting.

* Update pfsense.yaml

* Add config_highlighting device property

Add config_highlighting to device definition
Update showconfig.inc.php to use config_highlighting to set language.

* Update showconfig.inc.php

Fix incorrect code. Chose correct variable where config_highlighting is set.

* Update os_schema.json

Add property config_highlighting to schema
 - used for language highlighting when displaying the config file

* Update showconfig.inc.php
This commit is contained in:
brownowski
2019-09-25 16:42:45 +10:00
committed by Tony Murray
parent 31eced4875
commit c4569a620b
3 changed files with 7 additions and 7 deletions

View File

@@ -53,6 +53,9 @@
"icon": {
"type": "string"
},
"config_highlighting": {
"type": "string"
},
"poller_modules": {
"type": "object",
"properties": {