diff --git a/images/pic1.png b/images/pic1.png
index 76c62da..355f1f3 100644
Binary files a/images/pic1.png and b/images/pic1.png differ
diff --git a/src/utils/languages.py b/src/utils/languages.py
index 37fe55d..1e8ea1d 100644
--- a/src/utils/languages.py
+++ b/src/utils/languages.py
@@ -9,44 +9,46 @@ samples = {}
samples['ada'] = """
with Ada.Text_Io; use Ada.Text_Io;
-
- procedure Doors is
+
+procedure Doors is
type Door_State is (Closed, Open);
type Door_List is array(Positive range 1..100) of Door_State;
The_Doors : Door_List := (others => Closed);
- begin
- for I in 1..100 loop
- for J in The_Doors'range loop
- if J mod I = 0 then
- if The_Doors(J) = Closed then
- The_Doors(J) := Open;
- else
- The_Doors(J) := Closed;
- end if;
- end if;
- end loop;
- end loop;
- for I in The_Doors'range loop
- Put_Line(Integer'Image(I) & " is " & Door_State'Image(The_Doors(I)));
- end loop;
- end Doors;
+
+ begin
+ for I in 1..100 loop
+ for J in The_Doors'range loop
+ if J mod I = 0 then
+ if The_Doors(J) = Closed then
+ The_Doors(J) := Open;
+ else
+ The_Doors(J) := Closed;
+ end if;
+ end if;
+ end loop;
+ end loop;
+
+ for I in The_Doors'range loop
+ Put_Line(Integer'Image(I) & " is " & Door_State'Image(The_Doors(I)));
+ end loop;
+end Doors;
"""
samples['asp'] = """
-
-<%
-dim fname
-fname=Request.QueryString("fname")
-If fname<>"" Then
- Response.Write("Hello " & fname & "! ")
- Response.Write("How are you today?")
-End If
-%>
+
+ <%
+ dim fname
+ fname=Request.QueryString("fname")
+ If fname<>"" Then
+ Response.Write("Hello " & fname & "! ")
+ Response.Write("How are you today?")
+ End If
+ %>
"""
@@ -55,18 +57,19 @@ End If
samples['awk'] = """
BEGIN {
- for(i=1; i <= 100; i++) {
- doors[i] = 0 # close the doors
- }
- for(i=1; i <= 100; i++) {
- if ( int(sqrt(i)) == sqrt(i) ) {
- doors[i] = 1
+ for(i = 1; i <= 100; i++) {
+ doors[i] = 0 # close the doors
+ }
+
+ for(i = 1; i <= 100; i++) {
+ if ( int(sqrt(i)) == sqrt(i) ) {
+ doors[i] = 1
+ }
+ }
+
+ for(i = 1; i <= 100; i++) {
+ print i, doors[i] ? "open" : "close"
}
- }
- for(i=1; i <= 100; i++)
- {
- print i, doors[i] ? "open" : "close"
- }
}
"""
@@ -78,34 +81,33 @@ BEGIN {
samples['c'] = """
/* Some comments */
#include
-
-int main()
-{
- int square = 1, increment = 3, door;
- for (door = 1; door <= 100; ++door)
- {
- printf("door #%d", door);
- if (door == square)
- {
- printf(" is open.");
- square += increment;
- increment += 2;
+
+int main() {
+ int square = 1, increment = 3, door;
+ for (door = 1; door <= 100; ++door) {
+ printf("door #%d", door);
+
+ if (door == square) {
+ printf(" is open.");
+ square += increment;
+ increment += 2;
+ } else {
+ printf(" is closed.");
+ }
}
- else
- printf(" is closed.");
- }
+
return 0;
}
"""
-samples['c-sharp'] ="""
+samples['c-sharp'] = """
// Creates and initializes a new integer Array
int[] intArray = new int[5] { 1, 2, 3, 4, 5 };
//same as
int[] intArray = new int[]{ 1, 2, 3, 4, 5 };
//same as
int[] intArray = { 1, 2, 3, 4, 5 };
-
+
//Arrays are zero-based
string[] stringArr = new string[5];
stringArr[0] = "string";
@@ -162,21 +164,21 @@ samples['html'] = """
-
-
Monthly savings
-
-
Month
-
Savings
-
-
-
January
-
$100
-
-
-
February
-
$50
-
-
+
+
Monthly savings
+
+
Month
+
Savings
+
+
+
January
+
$100
+
+
+
February
+
$50
+
+
@@ -218,22 +220,20 @@ print 'hello world';
# samples['proto'] = """
samples['python'] = """
- def on_save_clicked(self, param):
- if not self.currentSchemeFile:
-
- filename = runSaveAsDialog(self.window, self.entryId.get_text() + '.xml')
-
- if filename and not '.' in os.path.basename(filename):
- filename = filename + '.xml'
-
- if filename:
- self.write_scheme(filename, self.entryId.get_text())
- self.currentSchemeFile = filename
-
- else:
- self.write_scheme(self.currentSchemeFile, self.entryId.get_text())
-
- # TODO handle case where there is a permissions issue
+ def on_save_clicked(self, param):
+ if not self.currentSchemeFile:
+ filename = runSaveAsDialog(self.window, self.entryId.get_text() + '.xml')
+
+ if filename and not '.' in os.path.basename(filename):
+ filename = filename + '.xml'
+
+ if filename:
+ self.write_scheme(filename, self.entryId.get_text())
+ self.currentSchemeFile = filename
+ else:
+ self.write_scheme(self.currentSchemeFile, self.entryId.get_text())
+
+ # TODO handle case where there is a permissions issue
"""
# samples['r'] = """
diff --git a/user_config/usr/share/gtkcodethemer/Main_Window.glade b/user_config/usr/share/gtkcodethemer/Main_Window.glade
index d43fcb4..41d4579 100644
--- a/user_config/usr/share/gtkcodethemer/Main_Window.glade
+++ b/user_config/usr/share/gtkcodethemer/Main_Window.glade
@@ -22,134 +22,146 @@