A basic question about Schemes

Discussion Forums discussion A basic question about Schemes

This topic contains 2 replies, has 2 voices, and was last updated by  lozzer1962 2 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
July 25, 2012 at 12:22 pm #19182


Hi, please excuse my ignorance. I am wanting to use Programmers Notepad to make the editing of a few specific text files easier.

They are all comma separated files, each line beginning with either a number or a command. I have played around with a couple of the existing Scheme files but cannot really understand where to start (I am not a programmer myself). Can anyone please point me in the right direction (except out of the door please).

A couple of examples of the type of data are below…

5, 9, 272.12.50, 89.10.20, 9.5630, 1.491, F2, GT

(I want to identify those lines which begin with specific numbers and highlight the entire line up to but not including the data in fields 7 and beyond)

5, 16, 9.13.25, 91.57.05, 67.5940, 1.491, .C, -SI0.05/0.15

(as above, but I want it to highlight in a different colour everything including and after ‘-SI’. I have about forty of these sets of characters -SO -NLP -SI  etc)

CONTOURS, 0.1, 2.013,1,1, 0.5, 4.035,1,1, 0.5, 0.125, 5.0, 2.0, 0.5, 0.01, 5.013, 5.035
GRID, CROSS,  50.00, 7.01, 0.2, INCREAS, 1.0, 1.0

(There are several of these types of record, each beginning with a word and followed by a series of comma separated fields)

I hope that I have asked the right question and hope that someone out there will be kind enough to help.

Thank you.

July 25, 2012 at 10:02 pm #19186

Key Master

At the moment this kind of specialised highlighting is quite complicated to do with Programmer’s Notepad – it would involve writing some C++ code. The built-in support for user syntax highlighting is limited to more normal programming language constructs.

July 26, 2012 at 8:29 am #19191


Hi Simon

Understood. I’ll see if one of our programmers here can fathom out the code.
Thank you for your help.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.