Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on November 27, 2005, 07:07:05 am

Title: Syntax / Folding problem?
Post by: rickg22 on November 27, 2005, 07:07:05 am
I downloaded the first SVN install, and i noticed 2 things:

a) Comments aren't highlighted as "comments", they look like source code.

b) if statements need a closing "endif" for the folding to work properly. Brackets don't match anymore.

Any ideas?
Title: Re: Syntax / Folding problem?
Post by: rickg22 on November 27, 2005, 04:43:41 pm
I just noticed something VERY STRANGE in the config file (i had to delete it to get the syntax working).

Look:
Code
        <color_sets>
            <default>
                <set0>
                    <NAME>
                        <str>Lua</str>
                    </NAME>
                   ...
                    <editor>
                         ...
                        <FILEMASKS>
                            <str>*.c,*.cpp,*.cc,*.cxx,*.h,*.hpp,*.hh,*.hxx,*.inl,</str>
                        </FILEMASKS>
                    </editor>
                </set0>
                <set1>
                    <NAME>
                        <str>C_C++</str>
                    </NAME>
                    ---
                        <FILEMASKS>
                            <str>*.gm,</str>
                        </FILEMASKS>
               </set1>
                <set2>
                    <NAME>
                        <str>Hitachi asm</str>
                    </NAME>
                    ...
                        <FILEMASKS>
                            <str>*.s20,</str>
                        </FILEMASKS>
                    </editor>
                </set2>

The filemasks are all wrong, but show correctly on the Editor configuration dialog. What happened?

[attachment deleted by admin]
Title: Re: Syntax / Folding problem?
Post by: Frank3000 on December 04, 2005, 11:09:01 pm
Hello,
here is another pic of strange syntax highlighting:
(Windows XP SP 2, wxWidgets 261, Code::blocks SVN revision 1447)

Frank


[attachment deleted by admin]
Title: Re: Syntax / Folding problem?
Post by: mandrav on December 04, 2005, 11:16:30 pm
Try deleting "C:\Documents and Settings\<username>\Application Data\codeblocks\default.conf".
Title: Re: Syntax / Folding problem?
Post by: Frank3000 on December 04, 2005, 11:25:46 pm
that did the trick !
 :D
thank you for the quick help
Title: Re: Syntax / Folding problem?
Post by: rickg22 on December 05, 2005, 12:39:22 am
Yeah but I'm intrigued. Why did it get messed up in the first place? Is it fixed already or what?  :?
Title: Re: Syntax / Folding problem?
Post by: mandrav on December 05, 2005, 12:54:50 am
Yeah but I'm intrigued. Why did it get messed up in the first place? Is it fixed already or what?  :?

Yes, it is fixed.
Title: Re: Syntax / Folding problem?
Post by: rickg22 on December 05, 2005, 02:13:54 am
whew :) Thanks!
Title: Re: Syntax / Folding problem?
Post by: rickg22 on December 07, 2005, 07:54:08 pm
Yiannis, a question. In what revision did you fix the problem? See here (http://forums.codeblocks.org/index.php?topic=1566.new#new).
Title: Re: Syntax / Folding problem?
Post by: thomas on December 08, 2005, 12:18:19 am
That was probably the bug where editor colours were incorrectly saved, and you kept around the old config file for two weeks, so the new (correctly working) version made a mess out of it (naturally).