Archive for April, 2011

Tab Lines in RSyntaxTextArea

Saturday, April 30th, 2011

The next release of RSyntaxTextArea will sport a new feature:  tab lines.  A user in the forums prodded me enough to look into this feature, and it’s really cool.  It’s little dotted lines helping you visually know where code blocks start and end.  An example screenshot:

Tab Lines

Tab Lines

The implementation will probably change before the next RSTA release, but the API will likely stay the same:

   public void setPaintTabLines(boolean paint);
   public void setTabLineColor(Color color);
   public boolean getPaintTabLines();
   public Color getTabLineColor();

Feel free to check it out from SVN and play around!