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

Open
opened 2026-02-26 20:59:07 -06:00 by kalatchev · 0 comments
kalatchev commented 2026-02-26 20:59:07 -06:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/AvalonEdit#446
No description provided.