Monday, 15 February 2010

javascript - Google prettify language for boolean queries -



javascript - Google prettify language for boolean queries -

i trying "pretty print" boolean queries using google-code-prettify. specifially queries parsed standardqueryparser in lucene.

so far have been playing around, trying define new language definition modifying existing lang-sql.js file. unfortunately cannot find documentation help me in process, , i'm terrible @ regular expressions, it's not going well.

i hence wondering if can help me out following:

are there pre-existing language definitions boolean and/or lucene queries? if not, there documentation or resources on web can help me write custom language definitions google-code-prettify? are there other alternatives google-code-prettify supports these types of boolean queries out of box?

any help appreciated.

i ended using hightlight.js instead of google-code-prettify. able create simple syntax highlighting lucene queries in way fits requirements.

hightlight.js has decent development documentation, , source code, cloned git repository, comes build script (in python) , easy utilize tools testing styles , language definitions.

javascript lucene syntax-highlighting google-code-prettify

No comments:

Post a Comment