On 25 June 2014 04:19, Péter peter20@mpp.hu wrote:
Hi,
Is there any way to syntax-colorize member function names, like below the "ByteBuffer::put"? The "function=0x002F30;0xF8FFFF;true" in ~/.config/geany/filedefs/filetypes.common seems not to be taken into account. (The "keyword=.." *is* taken into account. The "unsigned char" etc. are green.)
Hi,
Unfortunately colouring is *syntax* highlighting, not semantic highlighting. That means the highlighter can recognise an identifier, but it doesn't know what it means. All it does is compare the identifier to the list and if it exists it colours it "keyword" not "identifier" colour.
A second keyword list is (ab)used to list typenames identified by the symbol parser allowing them to be coloured differently, but again it can't tell if a name is actually being used as a typename or variable, so you can also get random variable names coloured if they match a typename anywhere, even if its not in scope.
Cheers Lex
[someting.cpp]
#include <xxxx>
namespace Xxxxxxx { namespace Yyyyyyyyy {
void ByteBuffer::put( long value ) { } void ByteBuffer::put( unsigned char *buffer, unsigned int len ) { } void ByteBuffer::skipNext( ) { } unsigned char ByteBuffer::get( ) { }
} }
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users