From d9004dc8f553ecce846fb97ecbe3d7a438683a8b Mon Sep 17 00:00:00 2001 From: John Kane Date: Fri, 30 Sep 2011 00:28:06 +0100 Subject: [PATCH] Expanded the demo page for powershell and included the mode in the build. --- Makefile.dryice.js | 2 +- demo/docs/powershell.ps1 | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile.dryice.js b/Makefile.dryice.js index 6dcb6b18..7f9e1252 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -212,7 +212,7 @@ project.assumeAllFilesLoaded(); [ "css", "html", "javascript", "php", "python", "lua", "xml", "ruby", "java", "c_cpp", "coffee", "perl", "csharp", "svg", "clojure", "scss", "json", "groovy", - "ocaml", "scala", "textile", "scad", "markdown", "latex" + "ocaml", "scala", "textile", "scad", "markdown", "latex", "powershell" ].forEach(function(mode) { console.log("mode " + mode); copy({ diff --git a/demo/docs/powershell.ps1 b/demo/docs/powershell.ps1 index 09bc59ab..cbcbb20f 100644 --- a/demo/docs/powershell.ps1 +++ b/demo/docs/powershell.ps1 @@ -1,5 +1,15 @@ - # This is a simple comment function Hello($name) { - Write-host "Hellot $name" + Write-host "Hello $name" } + +$number = 1 + 2; +$number += 3 + +Write-Host Hello -name "World" + +$an_array = @(1, 2, 3) +$a_hash = @{"something" = "something else"} + +& notepad .\readme.md +