1

I just wrote a syntax description file for kate/kwrite and I thought it might interest some other people.

You can download the two files there : Motorola ASM and there : GNU as

To install, simply copy these file into /usr/share/apps/katepart/syntax/ (there should be some other xml files in this directory already). You should then be able to select "GNU Assembler 68k" and "Motorola Assembler 68k" from the Tools => Highlight mode => Sources menu.

By default, not all recognized elements are highlighted. For instance, instruction, labels and registers are not. You can change their parameters in the KWrite's configuration dialog :
- open kwrite
- open the Settings => Configure editor dialgo box
- go to the Highlighting Text Styles tab
- select the language you want to configure in the "Highlight" combo box, for instance Sources/GNU Assembler 68k
- customize the recognized items at your will
- accept the changes

Depending on your kwrite version, you may need to restart kwrite before your changes actually apply.

In addition to syntax highlighting, this enables the Control-D hotkey.

2

Thank you !
avatar
« Quand le dernier arbre sera abattu, la dernière rivière empoisonnée, le dernier poisson capturé, alors vous découvrirez que l'argent ne se mange pas. »

3

License notice:
- The GNU assembler description is under the General Public License because it is based on another description file that was under this license.
- For consistency (and also following my personnal ideas about how software should be released), I decided that the Motorola assembler description should be under the General Public License too.

I just modified the file to reflect the license. smile

4

This is great.
thanks for releasing it smile
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

5

Nice work spectras. smile

People using vim might be interested in this ASM syntax file for Motorola 68k processors.
So much code to write, so little time.

6

For vim, isn't "set ft=asm68k" enough ?

« The biggest civil liberty of all is not to be killed by a terrorist. » (Geoff Hoon, ministre des transports anglais)

7

That works for me.

8

They are not the same... I never tried any of them, though happy
So much code to write, so little time.