Author: mmcallis
Date: 2008-07-09 21:35:48 -0400 (Wed, 09 Jul 2008)
New Revision: 11391
Modified:
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/migration.xml
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml
Log:
updating programlistings for code highlighting
Modified: docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/migration.xml
===================================================================
---
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/migration.xml 2008-07-09
22:42:00 UTC (rev 11390)
+++
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/migration.xml 2008-07-10
01:35:48 UTC (rev 11391)
@@ -26,7 +26,7 @@
the new portlet as a JSR-286 portlet so that the filter can be applied. For a portlet
named <emphasis>MyFooPortlet</emphasis>
it would now look like this:
</para>
-<programlisting><![CDATA[
+<programlisting role="XML"><![CDATA[
<portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Modified: docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml
===================================================================
---
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml 2008-07-09
22:42:00 UTC (rev 11390)
+++
docs/branches/JBoss_Portal_Branch_2_7/referenceGuide/en/modules/tutorials.xml 2008-07-10
01:35:48 UTC (rev 11391)
@@ -340,7 +340,7 @@
<area id="supports" coords='12' />
<area id="portletinfo" coords='15' />
</areaspec>
- <programlisting><![CDATA[
+ <programlisting role="XML"><![CDATA[
<portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2...
@@ -490,7 +490,8 @@
<area id="region" coords='14' />
<area id="height" coords='15' />
</areaspec>
- <programlisting><![CDATA[<?xml version="1.0"
encoding="UTF-8"?>
+ <programlisting role="XML"><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE deployments PUBLIC
"-//JBoss Portal//DTD Portal Object 2.6//EN"
"http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
@@ -845,11 +846,9 @@
HelloWorldPortlet:
</para>
<para>
- <screen>
- touch $JBOSS_HOME/server/
- <replaceable>configuration</replaceable>
- /deploy/helloworldportlet.war/WEB-INF/web.xml
- </screen>
+<screen>
+touch
$JBOSS_HOME/server/<replaceable>configuration</replaceable>/deploy/helloworldportlet.war/WEB-INF/web.xml
+</screen>
</para>
<para>
Re-deploying the HelloWorldPortlet produces output to the JBoss AS or
JBoss
@@ -937,8 +936,7 @@
</filename>
file:
</para>
- <para>
- <screen><![CDATA[
+ <programlisting role="XML"><![CDATA[
package org.jboss.portlet.hello;
import javax.portlet.ActionRequest;
@@ -1003,8 +1001,7 @@
prd.include(rRequest, rResponse);
}
}]]>
- </screen>
- </para>
+ </programlisting>
<para>
<variablelist>
<varlistentry>
@@ -1137,8 +1134,7 @@
<filename>HelloWorldJSPPortlet/WEB-INF/jsp/view.jsp</filename>
file:
</para>
- <para>
- <screen><![CDATA[
+ <programlisting role="JSP"><![CDATA[
<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
<portlet:defineObjects/>
@@ -1158,8 +1154,7 @@
href="<portlet:renderURL><portlet:param name="yourname"
value="Roy Russo">
</portlet:param></portlet:renderURL>">this</a>.
</div>]]>
- </screen>
- </para>
+ </programlisting>
<para>
<variablelist>
<varlistentry>