public static RSyntaxTextArea addDefaultActions(RSyntaxTextArea editor, RTextScrollPane scrollPane, boolean readOnly) {
JPopupMenu popupMenu = editor.getPopupMenu();
SaveXmlTextAreaAction saveXmlTextAreaAction = new SaveXmlTextAreaAction(editor, "Save");
EnableLineNumbersAction enableLineNumbersAction = new EnableLineNumbersAction(scrollPane, "Toggle Line Numbers");
GoToLineAction goToLineAction = new GoToLineAction(editor, "Go To Line");
int cnt = popupMenu.getComponentCount();
for (int i = cnt - 1; i >= 0; i--) {
if (popupMenu.getComponent(i) instanceof JSeparator) {