Skip to content

Add HL7 v2.x syntax highlighting definition (XSHD) #446

@kalatchev

Description

@kalatchev

Hello,

I would like to propose adding a syntax highlighting definition (XSHD) for HL7 v2.x messages.

HL7 v2.x is a widely used healthcare messaging standard. It is a plain text, pipe-delimited format (e.g. segments like MSH, PID, OBR, OBX, etc.), which makes it well-suited for regex-based highlighting in AvalonEdit.

I have a working XSHD definition that provides:

  • Segment highlighting (3-character segment IDs at line start)
  • Field and component separators (|, ^, ~, &)
  • Escape sequences (\...\)
  • Basic timestamp recognition

The implementation is minimal and does not introduce any breaking changes or additional dependencies.

Before submitting a pull request, I would like to confirm whether adding an HL7 definition to the repository would be acceptable from a project scope perspective.

If there is interest, I can open a PR with the proposed XSHD file.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions