Summary: | Syntax highlighter on source code textareas | ||
---|---|---|---|
Product: | Koha | Reporter: | Pablo AB <pablo.bianchi> |
Component: | System Administration | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, pasi.kallinen, veron |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Pablo AB
2015-03-12 17:09:48 UTC
(In reply to Pablo AB from comment #0) > Some textareas contain source code. For example SQL reports (not even > monospace font) For monospace font in SQL report textarea, add this to IntranetUserCSS: #rep_guided_reports_start textarea#sql { font-family: monospace; } Thanks! I had already done it jQuery, but is better your choice: $('#rep_guided_reports_start textarea#sql').css("font-family", "monospace" ); BTW, I thought jquery/plugins/jquery.highlight-3.js could help me, but is a very basic highlight. Maybe we can use a better text highlighter jquery plugin that do the full job (for both search and source code syntax highlight). Also (and this could be another enhancement) I wonder if there is a good reason why we don't have (AFAIK) a syspref to add anything to head HTML tag to both opac and intranet. That's would let anyone to add their own jquery plugins. We might be able to use Codemirror now for those as it's being used for the SQL reports. |