A plugin can be developed to convert the selected numbered text in the text area of the editor into various formats such as Octal, Binary, Hex. The number could also be converted into other scientific notations.
Alternately, someone could add the actions to the Calculator plugin which already knows how to do all the conversions,
then it's just a matter of binding the actions to shortcuts.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That should be straight-forward. I haven't looked at the Calculator code in a while, but I recall it being fairly clean. I haven't looked at JCalculator yet, does it provide this sort of functionality? Could JCalculator and Calculator merge in some useful way?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have actually created a macro for this and i think it can go into the Text Menu under macros. I tested it and it worked fine too.
Shall i go ahead and submit it ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=935841
Originator: NO
Alternately, someone could add the actions to the Calculator plugin which already knows how to do all the conversions,
then it's just a matter of binding the actions to shortcuts.
Logged In: YES
user_id=187628
Originator: NO
That should be straight-forward. I haven't looked at the Calculator code in a while, but I recall it being fairly clean. I haven't looked at JCalculator yet, does it provide this sort of functionality? Could JCalculator and Calculator merge in some useful way?
Logged In: YES
user_id=1992855
Originator: NO
I have actually created a macro for this and i think it can go into the Text Menu under macros. I tested it and it worked fine too.
Shall i go ahead and submit it ?
Decimal to Binary
Logged In: YES
user_id=1992855
Originator: NO
File Added: Decimal_to_Binary.bsh
Decimal to Hex
Logged In: YES
user_id=1992855
Originator: NO
File Added: Decimal_to_Octal.bsh
Decimal to Hex
Logged In: YES
user_id=1992855
Originator: NO
File Added: Decimal_to_Hex.bsh