If you have a (*.chm) which explains something based on keyword index, then you can set up user tools to look up keyword you just have typed in without escaping from the Editor.
The following example shows how to set up 'User Tools' to use Win32API help file. Let´s assume that you extracted the Win32API help file (Win32.chm) in the following directory. C:\Win32API\Win32.chm
- Open Preferences dialog box and select User Tools page
- Select an empty slot and fill with the following arguments.
- Menu Text: Win32API Context Help
- Command: C:\Win32API\Win32.chm
- Argument: $(CurrWord)
- Initial dir: $(FileDir)
- Hot key: F1
- Close on exit: Yes
- Save before execute: No
After that, you can press F1 to see the search index when the caret is on the word you want to look up.
If you want to a online service to look-up a word which you have just typed in without escaping from the Editor, then
- Open Preferences dialog box and select User Tools page
- Select an empty slot and fill with the following arguments.
- Menu Text: Online Service
- Command: C:\Program Files\Mozilla Firefox\firefox.exe
- Argument: https://dictionary.cambridge.org/spellcheck/english/?q=$(CurrWord)
- Initial dir: $(FileDir)
- Hot key: Ctrl+F1
- Close on exit: Yes
- Save before execute: No
After that, you can press Ctrl+F1 to see the contents when the caret is on the word you want to look up.
- Download Borland C++ 5.8.2 compiler.
- Unzip it to c:\borland\bcc582
- Make sure that the directory containing bcc32.exe is in your system environment path. bcc32.exe is located in the \bin subdirectory of the c:\borland\bcc582.
- Make sure that there is a bcc32.cfg and a ilink32.cfg file in the \bin subdirectory of your compiler. Its needed to set the compiler options for the Include and Lib paths. This is what the files should contain:
bcc32.cfg
-I"c:\borland\bcc582\include;c:\borland\bcc582\include\dinkumware" -L"c:\borland\bcc582\lib"ilink32.cfg
/L"c:\borland\bcc582\lib"Once you you have finished this steps you can now add it to the platform.
- Open Preferences dialog box and select User Tools page
- Select an empty slot and fill with the following arguments.
- Menu Text: Compile C++ with BCC
- Command: C:\Borland\bcc582\bin\bcc32.exe
- Argument: $(FileName)
- Initial dir: $(FileDir)
- Hot key: Ctrl+F7
- Capture output: Yes
- Save before execute: Yes
After that, you can press Ctrl+F7 to compile code with Borland C++.
git clone git://github.com/gituser/repository_name
Now you shoud have a repository copy in you computer, can then configure, make and make install if you wish.
cvs -z3 -d:pserver:anonymous@repository_name.cvs.sourceforge.net:/cvsroot/repository_name co -P modulename
Now you shoud have a repository copy in you computer, can then configure, make and make install if you wish.
rsync -ai a.cvs.sourceforge.net::cvsroot/repository_name/ /my/local/dest/dir/
Now you shoud have a repository copy in you computer, can then configure, make and make install if you wish.
cd Birds freewrap birds.tclYou now should have a full exe from a tcl script.
depends exetocheck.exe
You will get a list of the exe dependencies
The included 'tiny_impdef' program may be used to make additional .def files for any DLL. For example:
Open the PTSource Shell and issue the command :
tiny_impdef.exe opengl32.dll
Put opengl32.def into the tcc/lib directory at “C:\PTSOURCE\Platform\PTEditor\bin\lib”. Specify #pragma comment (lib, “opengl32”) at the top of your code to link a program that uses opengl32.dll.
workspace "MyWorkspace" configurations { "Debug", "Release" } project "MyProject" kind "ConsoleApp" language "C++" files { "**.h", "**.cpp" } filter { "configurations:Debug" } defines { "DEBUG" } flags { "Symbols" } filter { "configurations:Release" } defines { "NDEBUG" } optimize "On"Running Premake. Create a premake5.lua file in your project directory. Open the PTSource Shell a run premake.
$ premake5 vs2015
Building configurations...
Running action 'vs2015'...
Generating MyWorkspace.sln...
Generating MyProject.vcxproj...
Generating MyProject.vcxproj.user...
Done.
The above will generate a project for VS2015. Since PTSource comes already with MinGW-w64 so if we want to generate a Makefile for MinGW-w64.
$ premake5 gmake
Building configurations...
Running action 'gmake'...
Generating MyWorkspace.sln...
Generating MyProject.vcxproj...
Generating MyProject.vcxproj.user...
Done.
The above will generate a MinGW-w64 Makefile wich you can compile with make.
Premake can generate C, C++, or C# projects targeting:
- Microsoft Visual Studio 2008-2015
- GNU Make, including Cygwin and MinGW
- Xcode
- Codelite
Premake generated projects can support:
- 32- and 64-bit builds
- Xbox 360 (Visual Studio only)
js> function test() { print('test'); } js> test function test() { print("test"); } js> test(); test js> function test() { print('test'); test2(123); } js> function test2(param) { print ('test2: ' + param); } js> test(); test test2: 123 js>
To exit the shell, just press Ctrl+C.