The MASM Forum

Projects => Rarely Used Projects => RadAsm IDE Support => Topic started by: bluedevil on September 24, 2022, 07:23:11 AM

Title: Question to KetilO: Editor GuideLines for RadASM
Post by: bluedevil 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.
Title: Re: Question to KetilO: Editor GuideLines for RadASM
Post by: KetilO 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
Title: Re: Question to KetilO: Editor GuideLines for RadASM
Post by: bluedevil on September 29, 2022, 12:56:40 AM
Thanks a lot for your reply Ket'lO

I will take that information into account.  :thup:
Title: Re: Question to KetilO: Editor GuideLines for RadASM
Post by: HSE on September 29, 2022, 03:20:53 AM
How "Editor Guidelines" are different of "Indent markers" ?
Title: Re: Question to KetilO: Editor GuideLines for RadASM
Post by: bluedevil on September 29, 2022, 06:18:11 AM
Quote from: HSE on September 29, 2022, 03:20:53 AM
How "Editor Guidelines" are different of "Indent markers" ?

Hello HSE

First go to this github issue (https://github.com/dotnet/roslyn/issues/31102) 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.¯\_(ツ)_/¯
Title: Re: Question to KetilO: Editor GuideLines for RadASM
Post by: HSE on September 29, 2022, 06:39:03 AM
 :thumbsup: Thanks bluedevil!