Mats codemix

Mats codemix

A little c#, a litte .NET and throw in some c++ and you get a nice Spaghetti

Mats codemix RSS Feed
 
 
 
 

Testing syntax highlightning - SyntaxHighlighter pro wordpress plugin

SyntaxHighlighter pro wordpress plugin

Plugin csharp

// This is a Comment
function somefunction( string Path="*.txt" ,[string] $pattern="" )
{
select-string $xxxx -patt $pattern | foreach { np $_.Filename}
}

Plugin Powershell

Thanks to Jaykul at HuddledMasses.org!

[sourcecode language='powershell']
# This is a Comment
function Other( [string] $Path=”*.txt” ,[string] $pattern=”" )
{
select-string $xxxx -patt $pattern | foreach { np $_.Filename}
}
[/sourcecode]

Xml-code

Multiline comments doesnt seem to work with this version (Wordpress-plugin)

<!-- Submissions -->
<xf:submission action="A08_Avt_Arbgbesk.xmlc" id="Visa">
<xf:submit logf="no" ignoreValidate="yes"  />
</xf:submission>

Actipro code highlighter

Seems like this one can manage multiline xml comments
1 <Folder xsi:type="SqlServerFolder">
2   <Name>MSDB</Name>
3   <ServerName>servername\sql2005</ServerName>
4   <!-- This was the original line
5   <ServerName>.</ServerName>
6   -->
7 </Folder>

http://www.actiprosoftware.com/Products/DotNet/ASPNET/CodeHighlighter/pastecode.aspx
# Simple comment
function ssHasNot(
[string]
$Path=*.txt
,[string]
$pattern=“”
)
{
$has=[string]@(get-childitem $path | ss $pattern | foreach {$_.Path})
get
-childitem $path| where {$has.Contains($_.FullName) -eq $false}
}

Use poshcode


End poshcode.

Leave a Reply