Wow, I've never thought of it, but "syntax"-highlighting for binary files would be awesome.. e.g. "these bytes indicate the beginning of the next frame" (when talking about MP3/video files), maybe with mouseover support where it says e.g. "this value at this location indicates it's a $FOO variant of the file". Anyone know of such a tool?
Visualizing binary files with ImHex's DSL, the "pattern language"
11–17 of 17 posts
Re: Visualizing binary files with ImHex's DSL, the "pattern language"
#12Wow, I've never thought of it, but "syntax"-highlighting for binary files would be awesome.. e.g. "these bytes indicate the beginning of the next frame" (when talking about MP3/video files), maybe with mouseover support where it says e.g. "this value at this location indicates it's a $FOO variant of the file". Anyone know of such a tool?
Re: Visualizing binary files with ImHex's DSL, the "pattern language"
#13Re: Visualizing binary files with ImHex's DSL, the "pattern language"
#14My approach at the time was to have Org-mode tables detailing the meaning and composition of chunks of binary data. That wasn't nearly as comfortable as this editor seems to be, but I was told that it looked very impressive to people looking over my shoulder. Just like in those "hackers movies" where the screen is filled with gibberish sequences of digits and other random characters :)
Re: Visualizing binary files with ImHex's DSL, the "pattern language"
#15Re: Visualizing binary files with ImHex's DSL, the "pattern language"
#16Wow, I've never thought of it, but "syntax"-highlighting for binary files would be awesome.. e.g. "these bytes indicate the beginning of the next frame" (when talking about MP3/video files), maybe with mouseover support where it says e.g. "this value at this location indicates it's a $FOO variant of the file". Anyone know of such a tool?
010 editor has something like this. Okteta too. They both use DSLs to represent formats
Re: Visualizing binary files with ImHex's DSL, the "pattern language"
#17Great write up! I looked at ImHex a good while back and I think I had some runtime issues or maybe even compilation issues and didn't dig deeper. Even though the definition language piqued my curiosity. These days I tend to just use xxd, bless, ghex, or seldom wxHexEditor, depending on what I need. But ImHex looks really powerful, like it could replace all the GUI ones. I'm looking forward to giving it another go tom…
For now, my hex editor of choice is 010editor. Not free software, but the best for my application. Like ImHex, it supports huge files and block devices, and it has a powerful definition language.