Thursday, January 27, 2011

How to use Syntax Highlighter on Blogger

I'm trying to insert code in the post. And follow the instruction.
http://www.commonitman.com/2010/09/how-to-use-syntax-highlighter-3-in.html

1. Insert codes between <header> and </header>

2. Try it
<!-- JMS beans -->
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="tcp://localhost:61616"/>
</bean>
 
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
    <property name="connectionFactory" ref="connectionFactory" />
</bean>
  
<bean id="jmsListener" class="my.project.jms.jmsListener" />
<bean class="org.springframework.jms.listener.DefaultMessageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory" />
    <property name="destinationName" value="ServerReceiveQueue" />
    <property name="messageListener" ref="jmsListener" />
    <property name="autoStartup" value="false" />
</bean>

3. Issue
Why </property>s are automatically added?

4. Solved
I need to replace < to &lt; between <pre> and </pre>

No comments:

Post a Comment