![]() |
AW: Live-Template für die Format-Funktion
Du solltest folgendes noch ändern:
Code:
<code language="Delphi" context="methodbody" delimiter="|"><![CDATA[Format('|FormatString||end|',[|Vars|])]]></code>
![]() Wär ja doof, wenn du gerade Variablen oder Methoden deklarieren willst und das Template haut dir die Formatfunktion da rein ;) |
AW: Live-Template für die Format-Funktion
Danke für den Hinweis, ist eingebaut.
Solange ich den ersten Beitrag nicht editieren kann, poste ich immer mal wieder die neue Version:
Code:
Hat noch einer eine Idee wie man himitsu's Vorschlag umsetzen könnte?
<?xml version="1.0" encoding="utf-8" ?>
<codetemplate xmlns="http://schemas.borland.com/Delphi/2005/codetemplates" version="1.0.0"> <template name="forma" invoke="auto"> <description>Format-Funktionswrapper</description> <author>Thomas Hummes</author> <point name="FormatString" default="true"> <text></text> <hint>Der Formatstring</hint> </point> <point name="Vars"> <text></text> <hint>Variablen für die Formatierung</hint> </point> <code language="Delphi" context="methodbody" delimiter="|"><![CDATA[Format('|FormatString||end|',[|Vars|])]]></code> </template> </codetemplate> |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:23 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz