lxzliuxinzhu / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Problems with java code #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write <pre name="code" class="java"> or <textarea name="code"
class="java" cols="45" rows="10">
2.
3.

What is the expected output? What do you see instead?
I see plain text.
It works with many languages like html, xml, c-sharp... but with java it
doesn't work.

What version of the product are you using? On what operating system?
1.5.1

Please provide any additional information below.

Original issue reported on code.google.com by iamw...@gmail.com on 22 Feb 2008 at 8:53

GoogleCodeExporter commented 8 years ago
There is an implied "..." in the example html.  You'll need to add a <script 
...>
line for each language you want to use on that page, and the example only 
includes c#
and xml support.  Add:

<script language="javascript" src="js/shBrushJava.js"></script>

and see if that helps.

Original comment by cresw...@gmail.com on 12 Mar 2008 at 10:09