Page MenuHomePhabricator

add a Syntax check button beside Show preview
Closed, ResolvedPublic

Description

Author: gangleri

Description:
Dear friends;

Any help (also if it is not 100%) is better then no help.

Is it possible to write a dummy state machine which can detect errors as:
a1) unclosed <foo> (missing </foo>)
a2) <span class="plainlinks >[foo '''bar''']</span> (missing ")
a3) <span class="plainlinks" >[foo '''bar''']<span> (missing </span>)
b1) improper nesting <span class="plainlinks">'''[foo bar''']<span> (''' not properly nested)
etc.

The result should be a preview of the input. Not shure if tempalte should be handeled.

Best regards Reinhardt [[user:Gangleri]]


Version: unspecified
Severity: enhancement

Details

Reference
bz21913

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:57 PM
bzimport set Reference to bz21913.
bzimport added a subscriber: Unknown Object (MLST).

Note that syntax checking (in terms of "this is wrong" or "this is right", at least) is currently not supported by the parser. I don't know how easy it would be to add this.

Izno claimed this task.
Izno subscribed.

This is basically done besides A2 with the MW syntax highlighter, I think. Even without that, we now have Extension:Linter which I think does catch all of these.

Izno removed Izno as the assignee of this task.Jun 29 2021, 6:16 AM