3 * Please visit http://radeox.org/ for updates and contact.
5 * --LICENSE NOTICE-- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
6 * General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any
9 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free
13 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --LICENSE NOTICE--
16 package org.plog4u.wiki.macro.code;
18 import java.util.HashMap;
19 import java.util.HashSet;
21 import org.radeox.macro.code.SourceCodeFormatter;
24 * Java CodeFilter colourizes C# source code
27 public class PHPCodeFilter extends AbstractCPPBasedCodeFilter implements SourceCodeFormatter {
29 private static HashMap KEYWORD_SET = new HashMap();
31 private static final String[] KEYWORDS =
98 for (int i = 0; i < KEYWORDS.length; i++) {
99 //KEYWORD_SET.put(KEYWORDS[i], ""+KEYWORDS[i]+"");
100 createHashMap(KEYWORD_SET, KEYWORDS[i]);
105 public PHPCodeFilter() {
109 * @return Returns the KEYWORD_SET.
111 public HashMap getKeywordSet() {
115 public String getName() {
120 * @return Returns the OBJECT_SET.
122 public HashSet getObjectSet() {
129 * @see net.sourceforge.phpeclipse.wiki.macro.code.AbstractCPPBasedCodeFilter#isKeywordLowerCase()
131 public boolean isKeywordLowerCase() {
138 public boolean isPHPTag() {