[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: GNU assembler comments
From: Miquel <mikisabate () gmail ! com>
Date: 2010-08-31 22:52:53
Message-ID: 201009010052.53779.mikisabate () gmail ! com
[Download RAW message or body]
On Tuesday 31 August 2010 21:16:00 Milian Wolff wrote:
> On Tuesday 31 August 2010 19:58:54 Miquel wrote:
> > Hi there,
> >
> > Actually in Kate, when you comment a line using Ctrl+D shortcut, it uses
> > a "default" character/s. For example, in GNU assembler mode it uses
> > character @. However, this character is machine-dependent, it's only
> > allowed to be typed to comment lines in ARM assembly. Moreover, in x86
> > assembly using AT&T syntax, the character used to comment lines is #.
> > However, in x86 assembly using Intel syntax, the character used to
> > comment lines is ; .
> >
> > Finally, in GNU assembler, C-style comments /* */ can be used to comment
> > lines of any machine (x86 or ARM). Therefore, it seems that the best way
> > to comment one or more lines in GNU assembler mode when typing Ctrl+D
> > shortcut is using the characters /* */. My question is: where can I
> > change the characters to be used when Ctrl+D has been typed ? (I mean in
> > Kate code, in which function/file it is).
>
> Hey Miquel,
>
> take a look at the <comments> section in the gnuassembler.xml language
> file. Afaiks the first singleLine / first multiLine <comment/> is picked
> for the "CTRL + D" shortcut.
>
> Note: Multiline only gets used when you select multiple lines. Try removing
> all singleLine <comment /> fields and see whether that works better for
> you.
>
> Bye
Hello Milian,
I've commented all singleLine <comment /> fields and it works perfectly. I've
updated GNU assembler syntax highlighting with some other features. I've sent
a merge request on gitorious. Hope Kate devs like it ;)
Thanks a lot,
Miquel
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic