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

12
LINES

< > BotCompany Repo | #1034705 // initSyntaxTextArea

JavaX fragment (include) [tags: use-pretranspiled]

Uses 1485K of libraries. Click here for Pure Java version (5270L/29K).

sbool initSyntaxTextArea_numPadFix = true;

svoid initSyntaxTextArea(RSyntaxTextArea textArea) swing {
  if (initSyntaxTextArea_numPadFix)
    new NumPadFixingInputMap().replaceOn(textArea);
  textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
  textArea.setHighlightCurrentLine(false);
  textArea.setTabSize(2);
  textArea.setTabsEmulated(true);
  textArea.setCodeFoldingEnabled(false);
  textArea.setMarkOccurrences(true);
}

Author comment

Began life as a copy of #1015779

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034705
Snippet name: initSyntaxTextArea
Eternal ID of this version: #1034705/2
Text MD5: 1cc4ec72cb97e861c8fba83d8ed384c5
Transpilation MD5: 34feae28be6cb92eb04d4d960331d846
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-05 23:35:14
Source code size: 453 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 83 / 122
Version history: 1 change(s)
Referenced in: [show references]