User forums > Using Code::Blocks
abbreviations of comments
(1/1)
jeancf:
Hi,
I tried to create an abbreviation to add a separator line in my code like this:
--- Code: ---//----------------------------------------
--- End 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
Pecan:
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:
then enter the text for the abbreviation
then go to the editor; type sepCtrlJ and get:
Navigation
[0] Message Index
Go to full version