News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Question to KetilO: Editor GuideLines for RadASM

Started by bluedevil, September 24, 2022, 07:23:11 AM

Previous topic - Next topic

bluedevil

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.
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

KetilO

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

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

How "Editor Guidelines" are different of "Indent markers" ?
Equations in Assembly: SmplMath

bluedevil

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 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

Equations in Assembly: SmplMath