I trying to develop a java application to save my snippets. I want to copy codes from anywhere (like stackoverflow, netbeans, Xcode) and paste them into my application to save them with their formatting to retrieve them in future. How can achieve that? Is jTextArea supporting formatted texts (Code with colors)?
Thanks.
From Oracle JTextArea tutorial:
Which means: no, you can't use a JTextArea to format your code, use a JEditorPane or its subclass JTextPane (see this tutorial)