[
https://issues.apache.org/jira/browse/COUCHDB-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228063#comment-14228063
]
Ben Keen commented on COUCHDB-2472:
-----------------------------------
Two things:
1. CodeMirror should save us hundreds of KB (holy cow, Ace is huge!)
2. Unless anyone can think of a reason why not, I'll also deprecate our use of
prettyPrint while I'm at it: CodeMirror can be used for both static + editable
chunks of code. We can style them however we want - and consistently across the
script, I may add.
It meets all your requirements, Robert.
> New syntax highlighter for documents
> ------------------------------------
>
> Key: COUCHDB-2472
> URL: https://issues.apache.org/jira/browse/COUCHDB-2472
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Fauxton
> Reporter: Robert Kowalski
> Assignee: Ben Keen
>
> We need a new Syntax highlighter for our document list - we can't use Ace
> editor as it is a big editor which would lead to performance trouble for a
> list of 100 documents.
> Requirements:
> - different colors for key/values in JSON (prettify is not capable of that)
> - different colors for strings in keys and integers
> - customizable colors via css
> It might be also possible to use Ace in a static mode:
> https://github.com/ajaxorg/ace/blob/master/demo/static-highlighter.html
> Happy Hacking!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)