News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Syntax / Folding problem?

Started by rickg22, November 27, 2005, 07:07:05 AM

Previous topic - Next topic

rickg22

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?

rickg22

I just noticed something VERY STRANGE in the config file (i had to delete it to get the syntax working).

Look:

        <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]

Frank3000

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]
Klingon multitasking systems do not support 'time-sharing'. When a Klingon program wants to run,
it challenges the scheduler in hand-to-hand combat and owns the machine.

mandrav

Try deleting "C:\Documents and Settings\<username>\Application Data\codeblocks\default.conf".
Be patient!
This bug will be fixed soon...

Frank3000

that did the trick !
:D
thank you for the quick help
Klingon multitasking systems do not support 'time-sharing'. When a Klingon program wants to run,
it challenges the scheduler in hand-to-hand combat and owns the machine.

rickg22

Yeah but I'm intrigued. Why did it get messed up in the first place? Is it fixed already or what?  :?

mandrav

Quote from: 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?  :?

Yes, it is fixed.
Be patient!
This bug will be fixed soon...

rickg22


rickg22

Yiannis, a question. In what revision did you fix the problem? See here.

thomas

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).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."