Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1005112 // editText - show raw text editor with find & replace

JavaX fragment (include)

static EditorFrame editText(S text) {
  new EditorFrame frame;
  frameIcon(frame, "#1004655");
  
  // Customize text area
  RSyntaxTextArea textArea = frame.textArea;
  textArea.setCodeFoldingEnabled(true);
  textArea.setTabSize(2);
  textArea.setTabsEmulated(true); // Spaces are MUCH better!
  textArea.setText(text);
  
  showFrame(frame);
  ret frame;
}

Author comment

Began life as a copy of #1004946

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005112
Snippet name: editText - show raw text editor with find & replace
Eternal ID of this version: #1005112/1
Text MD5: 130d2c9cc12c98e3bfc89f8a94c06a65
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-16 18:42:18
Source code size: 371 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 490 / 497
Referenced in: [show references]