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)

1  
static EditorFrame editText(S text) {
2  
  new EditorFrame frame;
3  
  frameIcon(frame, "#1004655");
4  
  
5  
  // Customize text area
6  
  RSyntaxTextArea textArea = frame.textArea;
7  
  textArea.setCodeFoldingEnabled(true);
8  
  textArea.setTabSize(2);
9  
  textArea.setTabsEmulated(true); // Spaces are MUCH better!
10  
  textArea.setText(text);
11  
  
12  
  showFrame(frame);
13  
  ret frame;
14  
}

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: 434 / 438
Referenced in: [show references]