Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Can I use other program to edit like PSPAD

Author
Message
Random color object
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 19th Aug 2008 18:06
I use PSPAD to program, it got way more fonctions, is there a way to use it to program DBP?

My actual color is Color object 1, RGB(128,2,3) but I would like it to be random.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Aug 2008 19:35
There are many alternative IDEs specifically for DB Pro - Codesurge, Blue, Synergy. All of the above are free and on this forum.

Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 19th Aug 2008 20:06
if you can link PSPAD to to the DB compiler (it's in your compiler folder when you install DB) or specify that it uses that compiler then i'm sure it's completely possible to use your program.
Random color object
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 20th Aug 2008 13:54
Ok I open PSPad and it tell to create a highlighter. So far the only section I was able to fill was oompiler. What are the others (I underline them cause they are required)

This is the HELP file for

Compiler Settings
In some cases you need not only open document in external application, but run in external application, wait for application exit and than show some result (LOG). For this purpose is in PSPad compiler.
Compiler settings you find in menu Tools / Highlighter settings / Compiler tab settings.
You can run it from toolbar or use shortcut Ctrl+F9

What is given as param to compiler
Sorted as priority:


· main project file

· main file, if project doesn't exists

· active document




Compiler
Full path and program name to compiler without double quotes



Params
You can set compiler params, file name, ...

List of param variables is on bottom of this form. You can use context menu to insert param




LOG file
In this file is usually compilation results. PSPad shows you this file in LOG window on the bottom part of editor.



Run After Compilation
You can run compiler result (result code, or something else) after compilation.




Save All Files Before Compilation

If checked, all modified files will be saved before compilation



Catch Program Output Window

LOG parser:
If you set it, you are able by clicking in LOG window, open (or switch into) source file and set position to line (column) if included in LOG content.



Variables and masks:


* any text

%F filename

%L line number

%C column number





Example:


LOG:

[Error] uHLSett.pas(346): Undeclared identifier: 'ik'

[Fatal Error] PSPad.dpr(58): Could not compile used unit 'uHLSett.pas'

parser:

*] %F(%L)




Example explanation:


Because line begin in LOG isn't explicit, you need find common parts: ]space and on the begin put *.


Behind is filename %F than ( and line number, so we put %L. Closing bracked isn't necessary,but look nice

My actual color is Color object 1, RGB(128,2,3) but I would like it to be random.
Random color object
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 22nd Aug 2008 02:26
I got it to work, but PSP seem not to associate the command and is not placing them in color. PSP is way more usefull than the other editors, if someone can help me to find the right settings.

My actual color is Color object 1, RGB(128,2,3) but I would like it to be random.

Login to post a reply

Server time is: 2024-09-27 18:22:37
Your offset time is: 2024-09-27 18:22:37