
I have a working codesnippet. Now i want to fill a Literal with the result of a function. So i added in a declaration the line:
<Function>System.DateTime.Now.ToShortDateString()</Function>
Still it uses the specified default value. Should i call some method?</Snippet>
</CodeSnippet>
</CodeSnippets>
</code>
<Function>System.DateTime.Now.ToShortDateString()</Function>
Still it uses the specified default value. Should i call some method?
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>datamodel</Title>
<Shortcut>datamodel</Shortcut>
<Description>Builds a 'datamodel' statement</Description>
<Author>Blaise Team</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>name</ID>
<ToolTip>Name of datamodel</ToolTip>
<Default>MyDatamodel</Default>
</Literal>
<Literal>
<ID>created</ID>
<ToolTip>Date of creation</ToolTip>
<Function>System.DateTime.Now.ToShortDateString()</Function>
<Default>01-01-2008</Default>
</Literal>
</Declarations>
<Code Language="blaise">
<![CDATA[{
Datamodel: $name$
Date Created: $created$
}
datamodel $name$
Type
TSexe = (Female, Male)
Block MyBlock
Fields
Sexe : TSexe
Endblock
Fields
MyField : integer
ABlock: MyBlock
Rules
MyField
ABlock
endmodel
]]>
</CodeSnippet>
</CodeSnippets>
</code>