ANSI X12/EDIFACT document viewing



  • I’ve seen occasional and “generic” requests for some built-in support for documents using either or both of these formats for Electronic Data Interchange (EDI), as well as some proposed progress towards implementing such support (e.g., issue #6173 on GitHub).

    I realize that, for many, this is likely a low-priority issue, but for many of us who use NP++ and deal with EDI transactions on a regular basis, adding more full-featured support for these documents would be tremendously beneficial. I’ve also used and “tweaked” the XML style information provided in an answer on StackOverflow to the question about X12 syntax highlighting for Notepad++? for my own purposes, and it works well enough when trying to get a quick look at an X12 document. I’ve even created a registry file for Windows I can import which creates explicit associations for EDI files with NP++ (and assigns a recognizable “X12” icon to these files to help pick them out in a directory view). But, these simple “tricks” certainly have their limitations and would be enhanced by better support for the format within NP++.

    A few of the features that would be desired in an EDI implementation for ANSI X12 documents (I don’t currently work with EDIFACT documents, so I’ll just focus on the ANSI X12 structure) would include:

    • Folding of segments and segment groups such as Hierarchical Levels (HL’s)
    • Keyword identification of segment types - specifically in the first position
    • Identification of segment terminators as well as element/value separators
    • Keyword identification of element types - specifically within a segment and enclosed by the element separator

    Amongst others that I’m sure I’m not considering at the moment.

    I post this here to try to provide some more specific details about what I’m looking for. I know that I could use one of the other text editors out there, and even some of the “paid” utilities that are explicitly designed to handle ANSI X12/EDIFACT documents, but I would much prefer to simply improve on the functionality of a tool with which I’m already familiar. Please feel free to ask questions or include your own suggestions for things I’ve overlooked. Thank you.



  • Hello, I don’t know if can be useful for you, but I started to develop a plugin for Notepad++ that help in the analysis of the content of EDI files.
    At this moment is in early stage of development and it support only the EDIFACT format but soon I’ll develop also the part for the X12 format (stay tuned!)

    You can download the lates release version here: https://github.com/innox80/NppEdiAnalyzer/



  • @innox80 :
    First of all, thank you & hello from France. I deal with EDI files since 20 years and that remains a useful tool therefore bravo for your initiative.

    I installed your beta NPP EDI Analyzer plugin, and here is my feedback :

    • format/unformat works fine for EDI FACT messages (even if I could do the same with some macro in NPP++) but didn’t test with ANSI X12 files

    • structure view works until double-click on an EDI data element ; from there, I have the following feature comment : this shows the element/component name but for EDI professionals, the best would be to have data element/component values (e.g DE3039 for NAD or C829.1082 for LIN, etc…)

    (actually, I notice the “Ref.Table Values” in the combo box below" but not sure what this refers to).

    In any case, well done. Keep going with this useful plugin.
    Thanks,



  • Hello @Jean-Luc thanks for your interest in NppEdiAnalizer and thanks so much for your suggestions.
    About your points:

    • the format/unformat is developed now only for the EDIFACT, I think to extend (in general all the features) to the X12 in the next release
    • I take note of your suggestion about the element/component values (e.g DE3039 for NAD or C829.1082 for LIN, etc…) for the next improvements, I’ll work on that
    • The meaning of the “Ref.Table Values” combobox is to show the available codified values/description for the selected field in the list on the right (here non many data is loaded for now, I have to add more values to have the full coverage)

    I’ll try to do a new release by the end of this month of February , so stay tuned!