Trouble viewing source files, wrong indentation.
Posted: Wed Feb 04, 2004 8:17 pm
I'm a TextPad 4.7.2 user and I have trouble viewing source files because tabs are not shown properly and the indentation makes it hard to read the files, for instance, when I open a certain java source file TextPad shows:
when it should show the following:
However another editor like the one that comes with jEdit 4.1 final version does show the file like it is supposed to be shown!(unfortunately I don't master jEdit).
Furthermore, in some cases TextPad shows tabs and in others spaces, arbitrarily (it seems).
Last but not least, I have tried opening the java source files with the 'Maintain indentation' and 'Automatically indent blocks' options both enabled and disabled for Java documents, but it doesn't fix the annoyance in any form.
I would like to know how can I solve this problem.
Code: Select all
public void paint(Graphics g) {
//draw a black border and a white background
g.setColor(Color.white);
g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
g.setColor(Color.black);
g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
etc...
Code: Select all
public void paint(Graphics g) {
//draw a black border and a white background
g.setColor(Color.white);
g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
g.setColor(Color.black);
g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
etc...
Furthermore, in some cases TextPad shows tabs and in others spaces, arbitrarily (it seems).
Last but not least, I have tried opening the java source files with the 'Maintain indentation' and 'Automatically indent blocks' options both enabled and disabled for Java documents, but it doesn't fix the annoyance in any form.
I would like to know how can I solve this problem.