OCaml HTML5 parser/serialiser based on Python's JustHTML
1(** Message output formatters. 2 3 This module provides various output formats for validation messages, 4 including text, JSON, and GNU-style formats for IDE integration. *) 5 6(** {1 Formatters} *) 7 8(** Format messages as human-readable text. 9 10 Output format: [file:line:col: severity: message] 11 12 @param system_id Optional default system identifier for messages without location. *) 13val format_text : ?system_id:string -> Message.t list -> string 14 15(** Format messages as JSON. 16 17 Produces output compatible with the Nu HTML Validator JSON format. 18 19 @param system_id Optional default system identifier for messages without location. *) 20val format_json : ?system_id:string -> Message.t list -> string 21 22(** Format messages in GNU style for IDE integration. 23 24 Output format follows GNU conventions for error messages, compatible 25 with most IDEs and editors. 26 27 @param system_id Optional default system identifier for messages without location. *) 28val format_gnu : ?system_id:string -> Message.t list -> string