Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Using NotePad++ as a (somewhat) IDE for TCC-RT

Aug
2,152
92
Requirements:

NotePad++ (Notepad++)
NppExec Plugin (Notepad++ Plugins - Browse /NppExec at SourceForge.net)
TCC-RT (TCC-RT - TCC runtime for Windows batch files)

From NotePad++, create the command to run your TCC-RT code.

Plugins -> NPPExec -> Execute

The code in the following dialog allows me to run TCC code from NotePad++
Adjust the code to reflect the location of tcc.exe on your system.
I have saved this code as tccrt on my system.

1581776207198.png


From NotePad++, I have the following example code;

1581776261373.png


Note that I have saved this as testnpp.btm

This is the name of my scratch file, for testing out TCC-RT code.

To run this code from NotePad++, and have the .BTM output display in NotePad++, I press the F6 key to bring up the previous dialog, make sure that the tccrt code is loaded, and click ok.

1581776299480.png


The TCC code is run, and the output is displayed in the NotePad++ Console.

If you make a change to your code, just press Ctrl-F6 to run it again.

I'm posting this here mainly for my future reference, but it may be of use to others also.

Joe
 
For further Notepad++ fun, here's a keywords file for TCC/LE v14.

(I use TCC/LE and Notepad++ on my WinPE boot image, since they both work under 64-bit Windows PE.)
 

Attachments

Charles, how do I use that file? I think it's (in some sense) installed because the keywords look right. But I'm seeing a rather bizarre combination of bold/regular and no colors.

1581971576179.png
 
On my system, that file lives in the install directory. But my installation may be nonstandard; it may need to go in AppData\Roaming.
 
Thankyou for that @Charles Dye

I did a Language -> User Defined Language -> Define Your Language, clicked Import, and have BTM as my User Language

1581981092074.png


I can now tweak it to my liking.

Joe
 
I did exactly the same thing as Joe. And I'll be tweaking for a while. I'd like to color the names of variable functions. Does anyone know where I might find a complete plain-text list? Will HH.EXE still unpack the help file (if so, I forgot the command)? Maybe I could squeeze a list out of the source for the index.
 
Hey @vefatica
I tried to get a list of TCC Commands by doing;
Code:
e:\utils>copy "https://jpsoft.com/help/commandnames.htm" commandnames.htm
https://jpsoft.com/help/commandnames.htm => E:\Utils\commandnames.htm
     1 file copied
...then...
Code:
e:\utils>tpipe /simple=16 /input=commandnames.htm | *view
...but the results are not quite what you are looking for.

Joe
 
Hey again @vefatica you can de-compile the help file as follows;
Code:
hh.exe -decompile e:\utils\tcmd\ tcmd.chm
I moved the tcmd.chm to my e:\utils\tcmd\ folder when I did this.

Joe
 
Code:
? > cmdlist.txt

It won't include any commands you've disabled via SETDOS, and there's no equivalent for variables or functions.
 
Hey again @vefatica you can de-compile the help file as follows;
Code:
hh.exe -decompile e:\utils\tcmd\ tcmd.chm
I moved the tcmd.chm to my e:\utils\tcmd\ folder when I did this.

Joe
Thanks. That made it easy to get a list of variable function names.

Code:
v:\help26> do x in /P `dir /k /m /b f_*` ( echos ^s%@right[-2,%@name[%x]] )
 abs afscell afsmount afspath afssymlink afsvolid afsvolname agedate alias altname arrayinfo ascii assoc attrib average b64decode b64encode balloc bfree bpeek bpeekstr bpoke bpokestr bread bsize bwrite ...
 
Note that the files in the TCC Plugin SDK;

Commands
Command_Variables
Internal_Variables
Variable_Functions

...contain lists that can be used with NotePad++

Joe
 
Note that the files in the TCC Plugin SDK;

Commands
Command_Variables
Internal_Variables
Variable_Functions

...contain lists that can be used with NotePad++

Joe

Or any other editor like Multi-Edit for me.....
 
Great tip Charles - I didn't think to look at the SDK! I've been meaning to update my vim syntax highlighting and this will help. I can also now build the Notepad++ one as well.
 
Back
Top
[FOX] Ultimate Translator
Translate