Improved syntax highlighting:

* If present, only format capture groups in regexes, otherwise
  format the entire match.
* Added "title", "keyword", "property", "literal", and "comment"
  preset formats.
* Warning if color tuples are specified in an invalid format.

Also fixed a missing slot warning in QuantumInputDialog.

Change-Id: I291711dd9e2ffbe006634fdc8fd1946b9cb4ef6d
Fix up copy/paste error in nwchem.py.

Change-Id: I7349ec4ab6054c257da816c43457669822388a41
Merge topic 'input-syntax-hilite' into master

0cdf8533 Fix up copy/paste error in nwchem.py.
7b4043c0 Improved syntax highlighting: