Omnimaga

Calculator Community => Casio Calculators => Topic started by: AngelFish on July 27, 2011, 05:01:39 am

Title: SuperH Notepad++ extension
Post by: AngelFish on July 27, 2011, 05:01:39 am
Apparently no one's done a language definition for SuperH yet, so I spent about an hour tonight and wrote one for Notepad++. To use it, import the file by clicking on the menu icon crossed by a lightning bolt in the middle icon bar and hit import. Opening the file will allow Notepad++ to access it and it will automatically use the syntax highlighting for files with a ".sh3" extension. To use the file with other extensions after importing it, simply click on Languages > SuperH.

The syntax will highlight all SH-3 commands and all normal registers, as well as special registers, comments, and handles subsections (use "{" and "}"). Keep in mind that there must be a space between arguments in order for the arguments to highlight properly. For example:

Quote
Good:
mov.l @r1, r2

Bad:
mov.l @r1,r2


Hope it's useful.
Title: Re: SuperH Notepad++ extension
Post by: Munchor on July 27, 2011, 05:22:10 am
Cool Qwerty! I wish there were for more text editors, like what Deep Thought made ;) Nevertheless, thanks!
Title: Re: SuperH Notepad++ extension
Post by: z80man on July 27, 2011, 04:44:06 pm
Yay notepad++ coding ftw! My favorite language now on my favorite text editor ;D
Title: Re: SuperH Notepad++ extension
Post by: flyingfisch on August 26, 2011, 04:31:38 pm
Can you use it to program th 9860's superH processor?
Title: Re: SuperH Notepad++ extension
Post by: AngelFish on August 26, 2011, 06:34:19 pm
Sure. The instruction set is basically the same.
Title: Re: SuperH Notepad++ extension
Post by: flyingfisch on August 26, 2011, 08:54:09 pm
That's cool!
Title: Re: SuperH Notepad++ extension
Post by: z80man on August 27, 2011, 01:14:47 am
One thing I wonder is if it's possible to mix the SuperH language definition with the C definition cause I often do a lot of inline asm in my programs. That way I could get the proper hi lighting for each section of code on a single source file