Autor Beitrag
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 29.04.05 12:42 
Hier ein Beispiel:
Mit (Sender as TButton).Name

Eingetragen habe ich (ohne Leerzeichen):

Mit [d e l p h i](Sender as TButton).Name[/d e l p h i]

Jetzt klarer?

Demnach sollte es so aussehen:
Mit
ausblenden Delphi-Quelltext
1:
(Sender as TButton).Name					


Ihr machts einem aber nicht leicht. :wink:


Zuletzt bearbeitet von jasocul am Fr 29.04.05 12:47, insgesamt 1-mal bearbeitet
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 29.04.05 12:43 
Was geht da nicht..? :gruebel:

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 29.04.05 12:44 
Das ist kein Fehler sondern ein Feature! ;-)
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 29.04.05 12:50 
user profile iconTino hat folgendes geschrieben:
Das ist kein Fehler sondern ein Feature! ;-)

Genau dieses funktioniert ja nicht bei den Delphi-Tags. Oder bin ich mit Blindheit geschlagen? :gruebel:
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 29.04.05 12:56 
Also ich versteh noch immer nicht, was da deiner Meinung nach nicht funktioniert..! :gruebel:

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
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: Fr 29.04.05 12:58 
Achte mal ganz genau auf die Schrift ... Du müsstest Feststellen, dass der Source etwas eckiger ist.

_________________
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.
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 29.04.05 13:02 
Ich schreib jetzt mal ganz langsam :wink:
Damit ich es zeigen kann, ersetze ich die eckigen Klammern durch runde.

Ich schreibe:
Mit (delphi)(Sender as TButton).Name(/delphi)

Ergebnis sollte sein:
Mit
ausblenden Delphi-Quelltext
1:
(Sender as TButton).Name					


Ergebnis ist:
Mit (Sender as TButton).Name

Das sieht doch unterschiedlich aus, oder?
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 29.04.05 13:03 
user profile iconBenBE hat folgendes geschrieben:
Achte mal ganz genau auf die Schrift ... Du müsstest Feststellen, dass der Source etwas eckiger ist.

Stimmt. Das "as" ist anders. Ich hatte aber was anderes erwartet. (s.o.)
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 29.04.05 13:10 
Der Sinn und Zweck der Erweiterung ist es ja, dass so kleine Sourcestücke nicht mehr einen ganzen eigenen Source-Block benötigen.

Delphi-Tag in derselben Zeile wie Text ergibt: (Sender as TButton).Name

Ein Zeilenumbruch zwischen Text und Delphi-Tag ergibt:
ausblenden Delphi-Quelltext
1:
(Sender as TButton).Name					


Wenn der Tag in mit dem Text in derselben Zeile steht (und innerhalb des Codes keine Zeilenumbrüche sind), dann wird der Code zwar formatiert, kommt aber nicht in einen eigenen Source-Block, sondern bleibt mit dem Text in einer Zeile.

So - und wo funktioniert da jetzt was nicht? :gruebel:

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 29.04.05 13:14 
Aha. Ist also so gewollt. Daher: its a feature (@tino).

Dann ist das für mich erledigt.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 29.04.05 13:19 
Jap, it's feature! ;)

Das wurde eben eingeführt, damit man auch direkt in einem Text kleine Codestücke unterbringen kann, die auch als solche erkennbar sind, aber der Text dadurch nicht komplett zerpflückt wird weil jedes kleine Codestück seinen eigenen riesen Block bekommt.. ;)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 29.04.05 13:30 
Ist alles nachvollziehbar.
Da bisher Source-Code mit weißem Hintergrund dargestellt wurde (bei eigenem Block), hat mich das verwirrt.
Aber ihr habts mir ja dann auch langsam erklärt, damit es Zeit hat in mein Gehirn einzudringen. :nut: :flehan:
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 30.04.05 03:22 
IMHO sollte man den weißen Hintergrund auch beim "inline" einbinden nutzen, da sonst nicht ohne weiteres ersichtlich ist, dass es sich um Quellcode handelt :)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Sa 30.04.05 17:35 
Ein weißer Hintergrund ist meiner Meinung nach zu auffällig.