Search found 8 matches

by jerry1970
28 May 2008 15:13
Forum: Scripts
Topic: Script to open template, with cursor position
Replies: 0
Views: 8465

Script to open template, with cursor position

Hi all,

This is a script I made to create a new file based on a template.

First there is a base script:
procedure CreateNewFile( extension: WideString );
var
strFilename: WideString;
strOriginal: WideString;

i: Integer;
iLineCount: Integer;
iPos: Integer;
strOriginalLine: WideString ...
by jerry1970
28 May 2008 12:55
Forum: Scripts
Topic: base path for scripts?
Replies: 0
Views: 8695

base path for scripts?

When I have this line
uses 'CreateNewFile.pas';
in a file that is in the scripts folder under the TextEd folder and try to run it, it returns this error:
Cannot open file "C:\Program Files\RJ TextEd\scripts\Fast Reports - Demo Scripts\PascalScripts\CreateNewFile.pas"

Why is that folder set as the ...
by jerry1970
05 Nov 2007 15:15
Forum: Syntax files
Topic: create fold block
Replies: 6
Views: 16872

It works, thanks!
And thanks for the explanation - I don't use .NET yet, but will find out soon, I gues... ;)
by jerry1970
05 Nov 2007 09:27
Forum: Syntax files
Topic: create fold block
Replies: 6
Views: 16872

Try this:

Rgn_Start = "[START]"
Rgn_End = "[END]"
Rgn_CommentStart = "//"

Doesn't work...

I have these regions set, and then created a fold block:
Fold_Begin = "// [START]"
Fold_End = "// [END]"
but that doesn't work either.

What exactly is that Region setting for? Why is there only one Region ...
by jerry1970
05 Nov 2007 09:07
Forum: Syntax files
Topic: create fold block
Replies: 6
Views: 16872

create fold block

Inside PHP scripts, I want to fold a rather large collection of functions that I don't have to see the whole time. I tried to create a folding block that starts with a certain comment and ends with another. Something like this:


// [START] Properties: Set functions
function SetTableName( $name ...
by jerry1970
09 Aug 2006 12:18
Forum: Syntax files
Topic: php with hypertext
Replies: 6
Views: 20020

Rickard Johansson wrote:
PHP is embedded into HTML - both should be separate entities and thus have their own syntax colouring.
Well, if you put it that way it accually sound reasonable. :)
Hey, I am a programmer too, I am supposed to be able to make things sound logical and reasonable! :D
by jerry1970
09 Aug 2006 11:18
Forum: Syntax files
Topic: php with hypertext
Replies: 6
Views: 20020

I'm not sure about the PHP highlighting inside a string. I think a string should be highlighted as a string. Anything else just seems wrong, some how.

When I'm programming PHP, I am *very* glad to see the PHP code syntax coloured as PHP code, and not as an HTML string. PHP is embedded into HTML ...
by jerry1970
09 Aug 2006 10:44
Forum: Syntax files
Topic: php with hypertext
Replies: 6
Views: 20020

Maybe it's better to use multiple highlighters. Maybe a line in the Html syntax file that loads the PHP syntax as well. Whenever a <?php is encountered the PHP syntax kicks in, and when the > is encountered the HTML syntax is used again. Just a thought.

Sounds great! But don't forget that the ...