Search found 9 matches
- 20 Sep 2016 15:34
- Forum: Scripts
- Topic: Determine current highlighter
- Replies: 1
- Views: 14411
Re: Determine current highlighter
For posterity: This is now possible in versions 11.20+. Scripts Added a new property to the document object to get the current highlighter at the cursor position. The name is returned as a string in lower case. For example: var currentHighlighter = Document.HighlighterAtCursor; if ((currentHighlight...
- 20 Sep 2016 15:29
- Forum: Scripts
- Topic: How to add items to TListBox or TComboBox
- Replies: 2
- Views: 15515
Re: How to add items to TListBox or TComboBox
Thank you, I'll check it out. I haven't done any Pascal since high school in the eighties!
- 16 Sep 2016 19:15
- Forum: Scripts
- Topic: Wrap it! script
- Replies: 4
- Views: 18459
Wrap it! script
This script opens up a dialog box with eight buttons, one each for "", '', (), {}, [], <>, /**/, <!---->. Pressing one wraps the selected text in that set of symbols. I have this assigned to a shortcut key and I "page through" the buttons with the arrow keys and hit return for th...
- 16 Sep 2016 17:29
- Forum: Scripts
- Topic: How to add items to TListBox or TComboBox
- Replies: 2
- Views: 15515
How to add items to TListBox or TComboBox
I created a combobox as shown (I tried with a listbox too): TForm myForm = new TForm(nil); myForm.Caption = "Form name"; myForm.BorderStyle = bsDialog; myForm.Position = poScreenCenter; TComboBox myComboBox = TComboBox.Create(myForm); myComboBox.Parent = myForm; myForm.ShowModal; myForm.Fr...
- 12 Sep 2016 17:42
- Forum: Scripts
- Topic: Script to block comment/uncomment selected text
- Replies: 1
- Views: 14085
Re: Script to block comment/uncomment selected text
If you're running 11.20+ you can use this script which makes use of the new Document.HighlighterAtCursor property: var selectedText = Document.SelText; var firstTwoSelChars = Copy(selectedText, 1, 2); var selectionLength = Length(selectedText); if (firstTwoSelChars == "/*") { Document.SelT...
- 31 Aug 2016 16:35
- Forum: Scripts
- Topic: Get multiedit cursor positions?
- Replies: 2
- Views: 15137
Re: Get multiedit cursor positions?
I wanted this access to do multi-cursor numbering as discussed in the Requested Features section, so if you add that as a new feature of RJ that would take care of my need. However, it might still be useful for other applications.
Thanks!
Thanks!
- 26 Aug 2016 20:46
- Forum: Scripts
- Topic: Get multiedit cursor positions?
- Replies: 2
- Views: 15137
Get multiedit cursor positions?
Is it possible to get the positions of all multiedit cursors?
Thanks!
Thanks!
- 26 Aug 2016 20:15
- Forum: Scripts
- Topic: Script to block comment/uncomment selected text
- Replies: 1
- Views: 14085
Script to block comment/uncomment selected text
The block commenter built into RJ TextEd actually does line comments for each line. I prefer using actual block comments (/* */ or <!-- -->). This script will check to see if the selected block is already commented (select the delimiters too), if so it will uncomment the block, otherwise it will com...
- 26 Aug 2016 17:32
- Forum: Scripts
- Topic: Determine current highlighter
- Replies: 1
- Views: 14411
Determine current highlighter
Is it possible to determine the current highlighter affecting the text at the current cursor position. For example if I wanted to take one action if in the HTML section of an HTML document and another if in the JS section?
Thank you.
Thank you.