Search found 83 matches

by jgodfrey
28 Aug 2011 23:06
Forum: Scripts
Topic: Copy current Tcl procedure to the clipboard
Replies: 0
Views: 5305

Copy current Tcl procedure to the clipboard

Tcl is a very dynamic language. For example, you can paste an updated copy of a procedure into a running application and have access to the change immediately - without restarting the application. During development and debugging, I tend to use this feature often as it greatly speeds up the entire t...
by jgodfrey
28 Aug 2011 21:33
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25464

Re: Another interesting syntax highlighting challenge

Rickard Johansson wrote:I've made a small change in the draw function and it seems to be working now.
I assume this'll be part of 7.63 beta 2, right?

Jeff
by jgodfrey
28 Aug 2011 18:34
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25464

Re: Another interesting syntax highlighting challenge

I can't reproduce it using the find dialog so that seems to work, but I'll try to fix the syntax highlighting issue. Doh! You're right. I didn't look closely enough. I was using the find dialog to "Find All", and noticed that only 1 item was highlighted in each found line. However, I didn...
by jgodfrey
28 Aug 2011 17:16
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25464

Re: Another interesting syntax highlighting challenge

Hi Rickard, I'm working on the regex definitions for my G-Code file. First, these work exactly as expected: #Motion - G0*[0-3] #M-Codes - M[0-9]+ However, this doesn't work as I'd expected: #Coordinates - [XYIJ] I was hoping to pick off all X, Y, I, or J items in a line of code. For instance, this: ...
by jgodfrey
27 Aug 2011 17:27
Forum: Scripts
Topic: Scripted selections and current selection mode
Replies: 3
Views: 15519

Scripted selections and current selection mode

I have a script that finds and selects specific text in a source file. However, the selection process only works as expected if TextEd is in "normal" select mode when the script is run. So, I'd like to do one of the following: 1. Have the script determine the current selection mode, change...
by jgodfrey
27 Aug 2011 15:58
Forum: Scripts
Topic: GetMethodAtCursor
Replies: 3
Views: 15593

Re: GetMethodAtCursor

Great - thanks!

Jeff
by jgodfrey
27 Aug 2011 15:29
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38859

Re: FORTRAN syntax file

Rickard,

I added an "Edit" "Edit 2" and "Edit 3" section in my above post in case you missed them.

Jeff
by jgodfrey
27 Aug 2011 15:12
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38859

Re: FORTRAN syntax file

The syntax option "OnlyLineCommentIfFirstChar" can now have 3 values in v7.63. OnlyLineCommentIfFirstChar=2 means the line comment start character has to be the first character on the line. Thanks! I wonder though, with the addition of regex definitions, (my other related post) would I al...
by jgodfrey
27 Aug 2011 14:45
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25464

Re: Another interesting syntax highlighting challenge

Rickard Johansson wrote:Added to v7.63. Please test it in the upcoming beta release.
I'd be happy to. Thanks!

Jeff
by jgodfrey
25 Aug 2011 23:07
Forum: Syntax files
Topic: Another interesting syntax highlighting challenge
Replies: 11
Views: 25464

Another interesting syntax highlighting challenge

I work with a lot of NC code (for guiding numerically controlled machinery). These machines tend to use a form of code that's generically referred to as G-Code. Though there are lots of variations, it mostly consists of key/value pairs. Each "key" is generally an alpha character and each &...
by jgodfrey
25 Aug 2011 04:27
Forum: Scripts
Topic: Select range of lines and copy to clipboard
Replies: 0
Views: 4894

Select range of lines and copy to clipboard

I've written a script that can detect a range of lines I'm interested in. Now, I'd like to: 1. Select the range of lines 2. Copy them to the clipboard The only way I've found to select a range of lines is by using the Document.Cursor*(True) methods. While that works, it seems like it should be possi...
by jgodfrey
25 Aug 2011 01:07
Forum: Syntax files
Topic: FORTRAN syntax file
Replies: 18
Views: 38859

FORTRAN syntax file

I'm attempting to set up a FORTRAN syntax file (yeah, I know... ;)), but am struggling with the column-specific nature of the language. For instance, in F77, a comment is denoted by either a "C" or an asterisk, but it must specifically be in column 1. Currently, I don't see any way to do t...
by jgodfrey
22 Aug 2011 21:18
Forum: Syntax files
Topic: Tcl and Keyword Highlighting
Replies: 1
Views: 9672

Re: Tcl and Keyword Highlighting

After fiddling with some syntax coloring, I realized that the offending dash character was being rendered in the color defined for numbers. So, it seems that TextEd's highlight parser is doing something like: - Sees the "-", assumes it's at the beginning of a number, activates number color...