Author Topic: Question to KetilO: Editor GuideLines for RadASM  (Read 285 times)

bluedevil

  • Member
  • **
  • Posts: 199
  • Binary Grinder
    • SCTZine
Question to KetilO: Editor GuideLines for RadASM
« on: September 24, 2022, 07:23:11 AM »
Hello,

Both RadASM2 and RadASM3 doesn't have a feature "Editor Guidelines". I have opened an issue for this on RadASM2 github repo:

Quote
RadASM2 does not have an Editor GuideLine feature to set a line on a specific column on code editor.

How To:

    This can be handled in Option > Code Editor Options
        a checkbox to set editor guideline.
        One up-down control for column number
        one color picker control for setting color
    The settings then be saved in RadASM.ini

OR

While writing this issue i have realized that maybe this can be handled via a plugin?

And fearless had an important point on his reply:
Quote
Yes i guess either option would work, the plugin option sounds good, but not sure if RadASM exposes all the information required to implement it, so might have to do it in the main code.

@KetilO, before getting into this issue, can we get any suggestion from you to speed up our research process about this? I mean any kind of information is valuable. Like where to start, or how to implement?

Thank you.
« Last Edit: September 24, 2022, 08:48:21 AM by bluedevil »
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 34
Re: Question to KetilO: Editor GuideLines for RadASM
« Reply #1 on: September 28, 2022, 11:06:41 PM »
Hi,

The best way would be to modify the RAEdit component and draw in the WM_PAINT.

An addin would also work but is more complicated as there is no addin message for WM_PAINT.

KetilO

bluedevil

  • Member
  • **
  • Posts: 199
  • Binary Grinder
    • SCTZine
Re: Question to KetilO: Editor GuideLines for RadASM
« Reply #2 on: September 29, 2022, 12:56:40 AM »
Thanks a lot for your reply Ket'lO

I will take that information into account.  :thup:
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

HSE

  • Member
  • *****
  • Posts: 2257
  • AMD 7-32 / i3 10-64
Re: Question to KetilO: Editor GuideLines for RadASM
« Reply #3 on: September 29, 2022, 03:20:53 AM »
How "Editor Guidelines" are different of "Indent markers" ?
Equations in Assembly: SmplMath

bluedevil

  • Member
  • **
  • Posts: 199
  • Binary Grinder
    • SCTZine
Re: Question to KetilO: Editor GuideLines for RadASM
« Reply #4 on: September 29, 2022, 06:18:11 AM »
How "Editor Guidelines" are different of "Indent markers" ?

Hello HSE

First go to this github issue and look for the images.

You can set a permanent vertical line throughout your editor. Mostly the aim is for developers to not to exceed a certain number of columns while writing code or comments.

Most programming languages put coding conventions for developers for more readable clean code. Setting a max char at a line is one of them. And a editor guideline is really useful.

Bonus: I also love playing with RadASM2 and I want add some features to it.¯\_(ツ)_/¯
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

HSE

  • Member
  • *****
  • Posts: 2257
  • AMD 7-32 / i3 10-64
Re: Question to KetilO: Editor GuideLines for RadASM
« Reply #5 on: September 29, 2022, 06:39:03 AM »
 :thumbsup: Thanks bluedevil!
Equations in Assembly: SmplMath