| From: | "pgAdmin Trac" <trac(at)code(dot)pgadmin(dot)org> |
|---|---|
| To: | |
| Cc: | pgadmin-hackers(at)postgresql(dot)org |
| Subject: | Re: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper |
| Date: | 2010-10-06 09:41:56 |
| Message-ID: | 057.52adbf1e06e3e2fda5594ad7fa75a47f@code.pgadmin.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Guillaume Lelarge | 2010-10-06 12:49:49 | pgAdmin III commit: Update farsi translation, per Amir Abdollahi. |
| Previous Message | pgAdmin Trac | 2010-10-06 09:41:36 | [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper |