Is there a way to set the tab size (either in pixels or space units) for JEditorPane's? I'm using an HTMLDocument, so it doesn't matter if the tab size is set via css styling or from the program itself. If it is indeed being set from a css style sheet, it will likely need to apply to a <pre> tag since that's what I'm using.
What i'm trying to create is a colored syntax highlighting text component using the HTMLEditorKit to facilitate coloring (JTextArea unfortunately requires all text to have the same font/style, not suitable for this application). However, the default tab size for JEditorPane/HTMLDocuments is ~20 spaces, which is way too large. I would also prefer to not force all tabs to be converted into spaces.