Skip to content

nnot09/Parsify

Repository files navigation

readme is in progress

Parsify - Notepad++ Plugin for Text-Based Document Visualization

Parsify is a powerful plugin for Notepad++ that enables users to visualize electronic documents in a text-based format, such as EDIFACT or GDV. With Parsify, users can create custom format definitions using XML files, allowing them to precisely interpret and display various parts of the document.

Features

  • Custom Format Definitions: Define custom format definitions using XML files to parse text-based documents accurately.
  • Flexible Parsing: Specify the structure of each line and the fields within them, including optional fields and translations for specific values.
  • Visualization: Visualize parsed documents as a tree of nodes, displaying all lines and fields along with their corresponding values.
  • Much more (WIP)

Xml

<?xml version="1.0" encoding="utf-8"?>
<ParsifyModule xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>TestTextFormat</Name>
  <Version>1.6</Version>
  <Line StartsWith="HEAD">
    <Field Type="string" Name="NOTE" Position="5" Length="10" />
    <Field Type="string" Name="FLAG" Position="15" Length="2" />
    <Field Type="string" Name="ALPHA" Position="17" Length="2" />
    <Field Type="string" Name="BETA" Position="19" Length="6" Optional="true" />
    <Field Type="string" Name="GAMMA" Position="25" Length="1" />
  </Line>
  <Line StartsWith="POS">
    <Field Type="int" Name="QUANTITY" Position="4" Length="2">
      <Translate Value="^42$" Display="answer to everything" IgnoreCase="true" SearchMode="Regex" />
      <Translate Value="43" Display="missed the answer" SearchMode="StartsWith" />
    </Field>
  </Line>
  <Line StartsWith="DELTA">
	<Field Type="string" Name="TEST" Position="6" Length="3" />
  </Line>
</ParsifyModule>

Credits

  • BdR76 and his CSVLint project to understand highlighting/lexing in Notepad++.
  • Chri-s with his helpful PR's fixing various things and having great ideas to enhance the usability of this project.

Foreground highlighting

fg-highlight

Background highlighting

bg-highlight

App configuration

app-config

Error messages

error-msg

Mandatory and optional fields are missing ('?' ones are mandatory)

error-msg

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages