@@ -0,0 +1,2226 @@
+package eg.syntax;%0A%0Aimport javax.swing.text.SimpleAttributeSet;%0Aimport javax.swing.text.StyledDocument;%0Aimport javax.swing.text.StyleConstants;%0A%0Aimport java.awt.Color;%0A%0A/**%0A * Defines static attribute sets each with the attributes foreground color and%0A * weight (plain or bold)%0A * %0A */ %0Apublic class Attributes %7B%0A   %0A   public final static SimpleAttributeSet RED_PLAIN    = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet RED_BOLD     = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet BLUE_PLAIN   = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet BLUE_BOLD    = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet GREEN_PLAIN  = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet GRAY_BOLD    = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet ORANGE_PLAIN = new SimpleAttributeSet();%0A   public final static SimpleAttributeSet PURPLE_PLAIN = new SimpleAttributeSet();%0A%0A   private final static Color BLUE   = new Color(20, 30, 255);%0A   private final static Color RED    = new Color(240, 0, 50);%0A   private final static Color GREEN  = new Color(80, 190, 80);%0A   private final static Color GRAY   = new Color(30, 30, 30);%0A   private final static Color ORANGE = new Color(230, 100, 50);%0A   private final static Color PURPLE = new Color(130, 30, 250);%0A   %0A   static %7B%0A      StyleConstants.setForeground(RED_PLAIN, RED);%0A      StyleConstants.setBold(RED_PLAIN, false);%0A      %0A      StyleConstants.setForeground(RED_BOLD, RED);%0A      StyleConstants.setBold(RED_BOLD, true);%0A%0A      StyleConstants.setForeground(BLUE_PLAIN, BLUE);%0A      StyleConstants.setBold(BLUE_PLAIN, false);%0A%0A      StyleConstants.setForeground(BLUE_BOLD, BLUE);%0A      StyleConstants.setBold(BLUE_BOLD, true);%0A%0A      StyleConstants.setForeground(GREEN_PLAIN, GREEN);%0A      StyleConstants.setBold(GREEN_PLAIN, false);%0A%0A      StyleConstants.setForeground(GRAY_BOLD, GRAY);%0A      StyleConstants.setBold(GRAY_BOLD, true);%0A%0A      StyleConstants.setForeground(ORANGE_PLAIN, ORANGE);%0A      StyleConstants.setBold(ORANGE_PLAIN, false);%0A      %0A      StyleConstants.setForeground(PURPLE_PLAIN, PURPLE);%0A      StyleConstants.setBold(PURPLE_PLAIN, false);%0A   %7D%0A%7D%0A

add class to define static attributes for syntax coloring