Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jeancf on December 20, 2006, 02:13:24 pm

Title: abbreviations of comments
Post by: jeancf on December 20, 2006, 02:13:24 pm
Hi,

I tried to create an abbreviation to add a separator line in my code like this:

Code
//----------------------------------------

I wanted the abbreviation to be //- but typing this sequence followed by CTRL+J does not do anything.

I also tried /, //, //-- and *-+ with no more success.

Are symbols in abbreviations limited to [A-Za-z0-9]?

Thanks,

/~jc
Title: Re: abbreviations of comments
Post by: Pecan on December 20, 2006, 02:20:57 pm
I use "sep" as an abbreviation maybe 100 times a day. Works great.
Yes, you're correct; it seems that special chars cannot be used in abbreviations.

I go to abbreviations and enter "sep" as the abbreviation:
(http://img133.imageshack.us/img133/2985/89oc5.png)

then enter the text for the abbreviation
(http://img86.imageshack.us/img86/7871/90zt0.png)

then go to the editor; type sepCtrlJ and get:

(http://img100.imageshack.us/img100/7121/91jh8.png)