Autor Beitrag
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 15.02.06 01:04 
Hi,

ich bin beim GeSHi (Generic Syntax Highlighter, sehr bekannter und umfangreicher Syntax-Highlighter für PHP) für das Sprachfile-Maintaining für Pascal\Delphi\FreePascal zuständig und möchte die Anzeige sehr nah an den Borland IDEs halten.

Da ich aber nicht alle Delphi-Versionen besitze und viele derer, die ich mein Eigentum nenne, nicht mehr auf den Borland-Defaults laufen, suche ich hier einmal Hilfe in Bezug auf die Original-Farben der Delphi-IDEs bzw. den Umfang des Syntaxhighlightings.
Ich würde mich freuen, wenn Ihr mir für jede Delphi-IDE die Standard-mäßigen Farben (entweder Symbol --> #000080) oder als angepasste Fassung des folgenden Sources (PHP) geben könntet:

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
$this->setStyle('multi_comment', 'color:#008000;font-style:italic;');
$this->setStyle('single_comment', 'color:#008000;font-style:italic;');
$this->setStyle('single_string', 'color:#0000FF;');
$this->setStyle('single_string/esc', 'color:#0000FF;');

$this->setStyle('preprocessor', 'color:#008080;font-style:italic;');

$this->setStyle('asm', 'color:#000;');
$this->setStyle('asm/start', 'color:#000080;font-weight:bold;');
$this->setStyle('asm/end', 'color:#000080;font-weight:bold;');
$this->setStyle('asm/keyword', 'color:#000080;font-weight:bold;');
$this->setStyle('asm/keyop', 'color:#000080;font-weight:bold;');
$this->setStyle('asm/control', 'color:#000;font-weight: bold;');
$this->setStyle('asm/register', 'color:#000;');
$this->setStyle('asm/instr/i386', 'color:#000;font-weight:bold;');
$this->setStyle('asm/instr/i387', 'color:#000;font-weight:bold;');
$this->setStyle('asm/instr/mmx', 'color:#000;font-weight:bold;');
$this->setStyle('asm/instr/sse', 'color:#000;font-weight:bold;');
$this->setStyle('asm/instr/3Dnow', 'color:#000;font-weight:bold;');
$this->setStyle('asm/instr/3Dnow2', 'color:#000;font-weight:bold;');

$this->setStyle('asm/symbol', 'color:#000000;');
$this->setStyle('asm/label', 'color:#000;');
$this->setStyle('asm/num/int', 'color:#000;');
$this->setStyle('asm/num/dbl', 'color:#000;');
$this->setStyle('asm/hex', 'color: #000;');

$this->setStyle('asm/oodynamic', 'color:#000;');

$this->setStyle('keyword', 'color:#000080;font-weight:bold;');
$this->setStyle('keytype', 'color:#000;font-weight:bold;');
$this->setStyle('keyident', 'color:#000;font-weight:bold;');

$this->setStyle('symbol', 'color:#000000;');
$this->setStyle('ctrlsym', 'color:#000000;');
$this->setStyle('oopsym', 'color:#008000;');
$this->setStyle('brksym', 'color:#000000;');
$this->setStyle('mathsym', 'color:#000000;');
$this->setStyle('cmpsym', 'color:#000000;');

$this->setStyle('char', 'color:#0000FF;');
$this->setStyle('charhex', 'color:#0000FF;');
$this->setStyle('hex', 'color: #0000FF;');

$this->setStyle('oodynamic', 'color:#559;');

$this->setStyle('stdprocs/system', 'color:#444;');
$this->setStyle('stdprocs/sysutil', 'color:#444;');
$this->setStyle('stdprocs/class', 'color:#444;');
$this->setStyle('stdprocs/math', 'color:#444;');

$this->setStyle('num/int', 'color:#0000FF;');
$this->setStyle('num/dbl', 'color:#0000FF;');


Die Vorlage ist jetzt eine Annäherung an das D9-Farbschema. Um die Delphi-IDEs realistisch unterstützten zu können, muss ich den GeSHi etwas zurückschrauben, da der GeSHi wesentlich mehr Highlighten kann, wie es Borland macht.

Bitte bei jeglichen Schemata immer auch dazuschreiben, für welche Version sie gelten *g*

Anmerkung: Gesucht sind ALLE IDEs von D1 bis D10. Wer mir für den JBuilder oder C++ Builder die Styles geben kann, würd ich mich auch drüber freuen, auch wenn diese vorerst nicht allzu dringlich sind.

MfG,
BenBE.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mi 15.02.06 09:52 
Ich habe mal nachgeschaut, die Einstellungen stehen unter
HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Editor vielleicht mag ja jemand ein Tool zusammenstricken, das die Werte ausließt in eine für dich passende Datei schreibt.

Du weißt ja selber Programmierer sind faul ;)
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 16.02.06 13:00 
Format ist mir egal ^^ Ich nehm auch Registry-Dumps ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 16.02.06 13:16 
Hallo Ben,

hab hier mal die beiden Farbeinstellungen von Delphi 5 und 7 angehängt. Bei beiden Farbeinstellungen handelt es sich um die Standard (Default) Einstellung.

Gruß
Tino
Einloggen, um Attachments anzusehen!
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 16.02.06 13:21 
Hi, THX erstmal, was mir speziell fehlt, sind die älteren Versionen:

Hier mal die Liste zum Abhaken (- --> Benötigt, + --> Habsch):

- Delphi 1
- Delphi 2
+ Delphi 3
+ Delphi 4
+ Delphi 5
- Delphi 6
+ Delphi 7
- Delphi 8
+ Delphi 9
+ Delphi 10*

* Auf Grund eines HDD-Crashs noch nicht zum Installieren gekommen

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.


Zuletzt bearbeitet von BenBE am Do 16.02.06 14:32, insgesamt 1-mal bearbeitet
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 16.02.06 13:48 
Hallo,
und hier D3Pro und D4Standard, ebenfalls die Default-Einstellung.
Einloggen, um Attachments anzusehen!
_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 16.02.06 13:59 
Die D3 Pro brauch'sch mal kurz ne Übersetzung *g* Die Farbwerte sind mir dort soweit klar, aber die Flags dahinter sind's nicht ganz

(k, ,, --> Ohne Attribute, ,B, --> Bold, ,I, --> Kursiv, aber für was stehen die anderen 4 Werte???)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
fränk0815
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

Windows XP Prof. SP2
Delphi 2006 Prof. (Win32)
BeitragVerfasst: Do 16.02.06 14:13 
Titel: D10 Highlight RegDump
Hier mal ein Regdump für D10 :)
Einloggen, um Attachments anzusehen!
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 16.02.06 15:03 
Hallo,
bezgl. der Flags in D3, ein Bild sagt mehr als tausend Worte :arrow:
Einloggen, um Attachments anzusehen!
_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 16.02.06 15:10 
Ah, Redundanz *g*

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.