Closed gvom closed 1 year ago
Hello!
I would like to add a image in the middle of the code text. To allow the user to know with what image he is working. Like this:
I already tried to do it this way, but it didn't work:
final SimpleAttributeSet attrs = new SimpleAttributeSet(doc.getParagraphElement(doc.getLength()).getAttributes()); if (StyleConstants.getIcon(attrs) == null) { StyleConstants.setIcon(attrs, new ImageIcon(imgFile.getAbsolutePath())); } if("#{image:".equals(label)) { identation = UIUtils.getIdentationToNextLine(textSourceCode); doc.insertString(doc.getLength()-1, identation, attrs); }else doc.insertString(doc.getLength(), " ", attrs);
I cannot find a way to do this, if is possible, can you point me the righ way? If is not possible can you add this new feature?
RSTA will never support embedding arbitrary images in its text content, but it can render emojis if the fonts being used support them. In such cases, they are rendered if the appropriate code point is in the content.
Hello!
I would like to add a image in the middle of the code text. To allow the user to know with what image he is working. Like this:
I already tried to do it this way, but it didn't work:
I cannot find a way to do this, if is possible, can you point me the righ way? If is not possible can you add this new feature?