Author Topic: Line numbers in "View->Hex"?  (Read 1155 times)

Amorak

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Line numbers in "View->Hex"?
« on: January 19, 2022, 09:08:30 PM »
I have a hex file that I need to view/reference as numbered 512 bit blocks. I have set the "Options->Languages->View->Hex->Number of columns:" to 16 and likewise the "Bytes per column" to 4. This displays my 512 bit lines as expected. The problem is that the numbering to the left is based on the number of bytes, not the number of lines.

For example, I see this:
00000000:   00000000 00000000 00000000 00000000 00000000 00000000 AA000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000040:   00000000 00000000 00000000 00000000 00000000 00000000 AA000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

But, I need to see something like this:
00000000:   00000000 00000000 00000000 00000000 00000000 00000000 AA000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000001:   00000000 00000000 00000000 00000000 00000000 00000000 AA000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

I was hoping I could just enable line numbers using "View->Line Numbers" and have an extra column that showed line numbers in addition to or in place of the byte numbering, but that does not seem to work. Is there anyway to do this in VS?
SlickEdit Pro 2021 (v26.0.1.0 64-bit Qt5)

Thank you,

DJL

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6868
  • Hero Points: 528
Re: Line numbers in "View->Hex"?
« Reply #1 on: January 19, 2022, 09:58:56 PM »
I have a work around for you.  Do the following:

* Close your file
* Re open your file with special settings.  File>Open  (use Browser for files/Standard open dialog and not tool window). For Line Format choose Custom. For Record width enter 512. Open the file with these settings
* Turn on View>Line Hex  if this is useful to you.
* Turn on View>Line Numbers