Title: [1263] trunk/core/distribution/src/site/content: Added shBrushBdd to highlight BDD keywords.

Diff

Modified: trunk/core/distribution/src/site/content/bdd-grammar.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/bdd-grammar.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/bdd-grammar.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -9,7 +9,7 @@
 <h2>EBNF</h2>
 
 <p>Below is a detailed outlay of the BDD grammar JBehave understands.  It is expressed in <a href=""
-<pre class="brush: plain">
+<pre class="brush: bdd">
 ; JBehave Grammar expressed in EBNF (http://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_Form)
 
 ; The story or feature is a collection of scenarios

Modified: trunk/core/distribution/src/site/content/developing-scenarios.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/developing-scenarios.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/developing-scenarios.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -10,7 +10,7 @@
 
 <p>BDD encourages you to start defining the scenarios that express
 the desired behaviour in a textual format, e.g.:</p>
-<pre class="brush: plain">
+<pre class="brush: bdd">
     Given a stock of symbol STK1 and a threshold of 10.0
     When the stock is traded at 5.0
     Then the alert status should be OFF

Modified: trunk/core/distribution/src/site/content/getting-started.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/getting-started.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/getting-started.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -13,7 +13,7 @@
 <p>To start using JBehave, simply name your scenario file with
 underscores, eg i_can_toggle_a_cell (although the file name resolution
 is configurable) and define steps in it:</p>
-<pre class="brush: plain">
+<pre class="brush: bdd">
       Given a 5 by 5 game
       When I toggle the cell at (2, 3)
       Then the grid should look like

Modified: trunk/core/distribution/src/site/content/i18n.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/i18n.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/i18n.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -24,7 +24,7 @@
     href=""
 for a given Locale. Each locale has a separate keywords properties file.
 E.g. for Italian locale, the file <b>keywords_it.properties</b> is:
-<pre class="brush: plain">
+<pre class="brush: bdd">
 Scenario=Scenario:
 GivenScenarios=Dati gli scenari:
 ExamplesTable=Esempi:

Modified: trunk/core/distribution/src/site/content/parameter-converters.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/parameter-converters.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/parameter-converters.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -14,7 +14,7 @@
 parameter extracted from the candidate step with the parameter type of
 the matched method in the Steps class. Let's go back to our example to
 make this point clear. Consider a single textual step:</p>
-<pre class="brush: plain">
+<pre class="brush: bdd">
     Given a stock of symbol STK1 and a threshold of 10.0
 </pre>
 <p>which we map to the Java method:</p>
@@ -28,7 +28,7 @@
 the textual step to the annotation pattern are: "STK1" and "1.0". These
 are converted respectively to a <b>String</b> and a <b>double</b>.</p>
 <p>If we had comma-separated values, e.g</p>
-<pre class="brush: plain">
+<pre class="brush: bdd">
     Given a stock of symbols STK1,STK2 and thresholds of 10.0,20.0
 </pre>
 <p>these would handled automatically as well, provided the type of
@@ -70,7 +70,7 @@
 <p>This mechanism then allows for custom converters to be defined
 too. For example, let's consider the case of date conversion, a rather
 common one. The step would typically look like:</p>
-<pre class="brush: plain">
+<pre class="brush: bdd">
     When a stock of symbol STK1 is traded on 09/09/2009
 </pre>
 <p>and the matching step is</p>

Modified: trunk/core/distribution/src/site/content/parameter-injection.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/parameter-injection.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/parameter-injection.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -15,7 +15,7 @@
 <p>This is the default behaviour. The arguments extracted from the
 candidate step are simply matched following natural order to the
 parameters in the annotated Java method. For example:</p>
-<pre class="brush: plain">
+<pre class="brush: bdd">
     Given a stock of symbol STK1 and a threshold of 10.0
 </pre>
 <p>Arguments "STK1" and "10.0" are matched to the first and second

Modified: trunk/core/distribution/src/site/content/running-scenarios.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/running-scenarios.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/running-scenarios.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -23,10 +23,10 @@
 <pre class="brush: xml">
   <taskdef name="scenarioRunner"
     classname="org.jbehave.ant.ScenarioRunnerTask"
-    classpathref="your.runtime.classpath" />
+    classpathref="your.runtime.classpath"></taskdef>
   
   <scenarioRunner scenarioIncludes="**/scenarios/*.java"
-    scenarioExcludes="**/*Steps.java" />
+    scenarioExcludes="**/*Steps.java"></scenarioRunner>
     
 </pre>
 <p>Remember that you need to include <b>jbehave-ant</b> to your

Modified: trunk/core/distribution/src/site/content/table-examples.html (1262 => 1263)

--- trunk/core/distribution/src/site/content/table-examples.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/content/table-examples.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -13,7 +13,7 @@
 candidates for using JBehave Table Examples feature. Let's look at the
 example:</p>
 
-<pre class="brush: plain">
+<pre class="brush: bdd">
     Given a stock of symbol STK1 and a threshold of 10.0
     When the stock is traded at 5.0
     Then the alert status should be OFF
@@ -24,7 +24,7 @@
 <p>We notice that two lines are repeated and identical but for the
 values. We can then rewrite this scenario as:</p>
 
-<pre class="brush: plain">
+<pre class="brush: bdd">
     Given a stock of symbol [symbol] and a threshold of [threshold]
     When the stock is traded at [price]
     Then the alert status should be [status]

Added: trunk/core/distribution/src/site/resources/scripts/shBrushBdd.js (0 => 1263)

--- trunk/core/distribution/src/site/resources/scripts/shBrushBdd.js	                        (rev 0)
+++ trunk/core/distribution/src/site/resources/scripts/shBrushBdd.js	2009-09-19 23:57:21 UTC (rev 1263)
@@ -0,0 +1,42 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
+ *
+ * @version
+ * 2.0.320 (May 03 2009)
+ * 
+ * @copyright
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
+ *
+ * @license
+ * This file is part of SyntaxHighlighter.
+ * 
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
+ */
+SyntaxHighlighter.brushes.Bdd = function()
+{
+	var keywords =	'Given When Then And Scenario GivenScenarios Examples ExamplesTable ExamplesTableRow Pending NotPerformed Failed';
+	
+	this.regexList = [
+		{ regex: new RegExp(this.getKeywords(keywords), 'gm'),		css: 'keyword' }		// java keyword
+		];
+
+	this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
+};
+
+SyntaxHighlighter.brushes.Bdd.prototype	= new SyntaxHighlighter.Highlighter();
+SyntaxHighlighter.brushes.Bdd.aliases		= ['bdd'];

Modified: trunk/core/distribution/src/site/templates/skin.html (1262 => 1263)

--- trunk/core/distribution/src/site/templates/skin.html	2009-09-19 22:50:10 UTC (rev 1262)
+++ trunk/core/distribution/src/site/templates/skin.html	2009-09-19 23:57:21 UTC (rev 1263)
@@ -60,7 +60,7 @@
 </div>
 <div class="clear"></div>
 <div id="footer">
-<div class="left">Last Published: 15 Sep 2009</div>
+<div class="left">Last Published: 20 Sep 2009</div>
 <div class="right">&#169; 2003-2009</div>
 <div class="clear"></div>
 </div>
@@ -82,6 +82,7 @@
 <script language="_javascript_" src=""
 <script language="_javascript_" src=""
 <script language="_javascript_" src=""
+<script language="_javascript_" src=""
 <script type="text/_javascript_">
 	SyntaxHighlighter.config.clipboardSwf = './scripts/sh-2.0.320/clipboard.swf';
     SyntaxHighlighter.defaults['gutter'] = false;


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to