[ZBXNEXT-4893] Embedded script syntax highlighting Created: 2018 Nov 29  Updated: 2019 Apr 18

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Vitaly Zhuravlev Assignee: Valdis Murzins
Resolution: Unresolved Votes: 2
Labels: preprocessing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
depends on ZBXNEXT-3508 Add embedded script support to item p... Closed

 Description   

By the way, can we implement syntax highlight for the language we choose from the start for preprocessing?

This will be very nice looking and convenient. +100 points to Zabbix feels and looks    And will help users not to make any stupid typos or syntax errors.

Like Prism or Rainbow:

https://prismjs.com/ (MIT), https://github.com/PrismJS/prism

https://craig.is/making/rainbows (Apache 2.0), https://github.com/ccampbell/rainbow/blob/master/LICENSE

They seem to be small, embeddedable JS libraries with permissive license

 

And if we like it, we may write a plugin for it (prism?) to highlight the syntax of Zabbix trigger expressions as well.



 Comments   
Comment by richlv [ 2018 Nov 29 ]

Possibly related to ZBXNEXT-1517.

Comment by Vitaly Zhuravlev [ 2019 Mar 19 ]

We can also use it to highlight html in email notifications, I think.

Generated at Fri Mar 29 07:02:43 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.