Error indicators in JSON mode editor

Improve the feedback to the user for invalid JSON data using error
indicators like the SQL editor.

Do not select all the text in the JSON mode, in order to see the
syntax highlighting while browsing.

Fix the logic in the case of not compacting/prettifying.

Change "Indent" to "Pretty print" in preferences for coherence to
JSON Export dialog (actually it is not only indentation).

Do not underline error style font, so it does not overlap with
error indicators.

See issue #1173
This commit is contained in:
mgrojo
2017-11-27 22:10:10 +01:00
parent 42d2feb99b
commit d486a9ff64
4 changed files with 62 additions and 9 deletions

View File

@@ -388,7 +388,7 @@
<item row="1" column="1">
<widget class="QCheckBox" name="checkIndentCompact">
<property name="text">
<string>Indent text on loading. Compact on saving.</string>
<string>Pretty print on loading. Compact on saving.</string>
</property>
</widget>
</item>