Re: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper

Поиск
Список
Период
Сортировка
От pgAdmin Trac
Тема Re: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper
Дата
Msg-id 057.52adbf1e06e3e2fda5594ad7fa75a47f@code.pgadmin.org
обсуждение исходный текст
Ответ на [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper  ("pgAdmin Trac" <trac@code.pgadmin.org>)
Список pgadmin-hackers
#250: Extend the syntax highlighting to setting sql commands in upper
-----------------------+----------------------------------------------------
 Reporter:  Andreas    |       Owner:  dpage
     Type:  feature    |      Status:  new  
 Priority:  minor      |   Milestone:       
Component:  pgadmin    |     Version:  1.12 
 Keywords:  querytool  |    Platform:  all  
-----------------------+----------------------------------------------------

Comment(by gleu):

 You're right. And as a matter of fact, it's quite easy. Here is the diff
 to handle this:

 diff --git a/pgadmin/ctl/ctlSQLBox.cpp b/pgadmin/ctl/ctlSQLBox.cpp
 index 3cd5577..26cdb9c 100644
 --- a/pgadmin/ctl/ctlSQLBox.cpp
 +++ b/pgadmin/ctl/ctlSQLBox.cpp
 @@ -114,6 +114,8 @@ void ctlSQLBox::Create(wxWindow *parent, wxWindowID
 id, const wxPoint& pos, cons
         StyleSetFont(i, fntSQLBox);
     }

 +    StyleSetCase(5, wxSTC_CASE_UPPER);
 +
     // Margin style
     StyleSetBackground(wxSTC_STYLE_LINENUMBER,
 settings->GetSQLMarginBackgroundColour());

 But I think we should have an option to activate this. I'm gonna work on
 it, unless someone wants to do it before :)

--
Ticket URL: <http://code.pgadmin.org/trac/ticket/250#comment:1>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: "pgAdmin Trac"
Дата:
Сообщение: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: pgAdmin III commit: Update farsi translation, per Amir Abdollahi.