Author Topic: Quite simple 13.12 questions  (Read 3224 times)

Offline cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
Quite simple 13.12 questions
« on: May 05, 2014, 08:04:55 pm »
Hi!

In the past time I was a quite content user of codeblocks. It is quite easy to use
and also provides good customization, though I haven't found out, how to change
the color and the background of the line numbers :-))

Lately I updated from 12.11 to 13.12. Tragically I found the font changed, and couldn't
review the old version. Can someone tell me, the name of the old font?

The second, even more shocking thing was, the loss of my indents. It seems as if cb
uses auto indents, which override these, provided by the user. Maybe someone can
help me to change this too.

Soon answer is appreciated :-))


Edit:

Extra question: How can I set the mouse over information to a longer intervall.
Sometimes it is tedious to remove the code pop ups, which are sometimes most
usefull.



« Last Edit: May 05, 2014, 08:21:29 pm by cb@germany »

Offline digifuzzy

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: Quite simple 13.12 questions
« Reply #1 on: May 05, 2014, 09:41:40 pm »
Keeping up or lapsing skills? I very much understand. I'm in the same situation.  ;D
Let's go through this one at a time:
a) line number background/foreground colours
not sure. I had thought it might be available under menu:settings->editor->"Syntax Highlighting"
but there doesn't appear to be an entry. Will dig.

EDIT: found it
menu settings->Environment->Colours-> select "Editor" from the drop down selection -> line number colouring is in this small group (Line Number foreground/background colours)

b) font
menu settings->editor ->"General Settings" dialog
top shows the editor font with a sample of how it is presented.
On my system, I have the default set to "Monospace" -> if you click the "Choose" button you can change the font.
Note: this is system dependent. If you don't see a monospaced font - add these fonts as per your system.
As for previous settings, not sure - again system dependent.

c) indents
same dialog as above -> group box below fonts labelled "Indents"
there is also the settings->editor ->"Source Formatter"->Indentation tab
« Last Edit: May 05, 2014, 09:47:21 pm by digifuzzy »

Offline cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Quite simple 13.12 questions
« Reply #2 on: May 06, 2014, 07:56:49 am »
Sometimes I wonder if it is the memory, or if people can't read anymore.

Question2:

I want to restore the font of 12.11, but can't remember the NAME of the font. Maybe still
someone want to give me the name :-)

Thanks to digifuzzy for the answers. That will do so far.


Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Quite simple 13.12 questions
« Reply #3 on: May 06, 2014, 01:23:48 pm »
Courier New. If you don't have that on your computer, then it's Lucida Console. See:

branches/release-12.11/src/sdk/editorconfigurationdlg.cpp

EditorConfigurationDlg::EditorConfigurationDlg(wxWindow* parent)
{
    ...
    m_FontString = Manager::Get()->GetConfigManager(_T("editor"))->Read(_T("/font"), wxEmptyString);
    UpdateSampleFont(false);

...

void EditorConfigurationDlg::UpdateSampleFont(bool askForNewFont)
{
    wxFont tmpFont(10, wxMODERN, wxNORMAL, wxNORMAL);

    if(!m_FontString.IsEmpty())
        ...


wxMSW\src\msw\font.cpp
void wxNativeFontInfo::SetFamily(wxFontFamily family)
{
    ....

    switch ( family )
    {
    ...
    case wxMODERN:
            ff_family = FF_MODERN;
            facename.Add(_T("Courier New"));
            facename.Add(_T("Lucida Console"));
            facename.Add(_T("Andale Mono"));
            facename.Add(_T("OCR A Extended"));
            facename.Add(_T("Terminal"));
            break;
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."