|
What this is
Other links
The source code
/*
* $Header: /cvsroot/mvnforum/myvietnam/src/net/myvietnam/mvncore/filter/EnableMVNCodeFilter.java,v 1.13 2005/01/18 12:16:40 minhnn Exp $
* $Author: minhnn $
* $Revision: 1.13 $
* $Date: 2005/01/18 12:16:40 $
*
* ====================================================================
*
* Copyright (C) 2002-2005 by MyVietnam.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* All copyright notices regarding MyVietnam and MyVietnam CoreLib
* MUST remain intact in the scripts and source code.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Correspondence and Marketing Questions can be sent to:
* info@MyVietnam.net
*
* @author: Minh Nguyen minhnn@MyVietnam.net
* @author: Mai Nguyen mai.nh@MyVietnam.net
*/
package net.myvietnam.mvncore.filter;
public final class EnableMVNCodeFilter {
private EnableMVNCodeFilter() { //prevent instantiation
}
static String[][] mvnCode = {
{ "[b]", "<b>" },
{ "[/b]", "</b>" },
{ "[i]", "<i>" },
{ "[/i]", "</i>" },
{ "[u]", "<u>" },
{ "[/u]", "</u>" },
{ "[s]", "<s>" },
{ "[/s]", "</s>" },
{ "[hr]", "<hr>" },
{ "[br]", "<br>" },
{ "[p]", "<p>" },
{ "[h1]", "<h1>" },
{ "[/h1]", "</h1>" },
{ "[h2]", "<h2>" },
{ "[/h2]", "</h2>" },
{ "[h3]", "<h3>" },
{ "[/h3]", "</h3>" },
{ "[h4]", "<h4>" },
{ "[/h4]", "</h4>" },
{ "[h5]", "<h5>" },
{ "[/h5]", "</h5>" },
{ "[h6]", "<h6>" },
{ "[/h6]", "</h6>" },
{ "[/size]", "</font>" },
{ "[size=+1]", "<font size=\"+1\">" },
{ "[size=+2]", "<font size=\"+2\">" },
{ "[size=+3]", "<font size=\"+3\">" },
{ "[size=+4]", "<font size=\"+4\">" },
{ "[size=+5]", "<font size=\"+5\">" },
{ "[size=+6]", "<font size=\"+6\">" },
{ "[size=1]", "<font size=\"1\">" },
{ "[size=2]", "<font size=\"2\">" },
{ "[size=3]", "<font size=\"3\">" },
{ "[size=4]", "<font size=\"4\">" },
{ "[size=5]", "<font size=\"5\">" },
{ "[size=6]", "<font size=\"6\">" },
{ "[size=-1]", "<font size=\"-1\">" },
{ "[size=-2]", "<font size=\"-2\">" },
{ "[size=-3]", "<font size=\"-3\">" },
{ "[size=-4]", "<font size=\"-4\">" },
{ "[size=-5]", "<font size=\"-5\">" },
{ "[size=-6]", "<font size=\"-6\">" },
{ "[/font]", "</font>" },
{ "[font=arial]", "<font face=\"arial\">" },
{ "[font=times new roman]", "<font face=\"times new roman\">" },
{ "[font=courier new]", "<font face=\"courier new\">" },
{ "[font=century gothic]", "<font face=\"Century Gothic\">" },
{ "[/color]", "</span>" },
{ "[color=skyblue]", "<span style=\"color: skyblue\">" },
{ "[color=royalblue]", "<span style=\"color: royalblue\">" },
{ "[color=blue]", "<span style=\"color: blue\">" },
{ "[color=darkblue]", "<span style=\"color: darkblue\">" },
{ "[color=orange]", "<span style=\"color: orange\">" },
{ "[color=orangered]", "<span style=\"color: orangered\">" },
{ "[color=crimson]", "<span style=\"color: crimson\">" },
{ "[color=red]", "<span style=\"color: red\">" },
{ "[color=firebrick]", "<span style=\"color: firebrick\">" },
{ "[color=darkred]", "<span style=\"color: darkred\">" },
{ "[color=green]", "<span style=\"color: green\">" },
{ "[color=limegreen]", "<span style=\"color: limegreen\">" },
{ "[color=seagreen]", "<span style=\"color: seagreen\">" },
{ "[color=deeppink]", "<span style=\"color: deeppink\">" },
{ "[color=tomato]", "<span style=\"color: tomato\">" },
{ "[color=coral]", "<span style=\"color: coral\">" },
{ "[color=purple]", "<span style=\"color: purple\">" },
{ "[color=indigo]", "<span style=\"color: indigo\">" },
{ "[color=burlywood]", "<span style=\"color: burlywood\">" },
{ "[color=sandybrown]", "<span style=\"color: sandybrown\">" },
{ "[color=sienna]", "<span style=\"color: sienna\">" },
{ "[color=chocolate]", "<span style=\"color: chocolate\">" },
{ "[color=teal]", "<span style=\"color: teal\">" },
{ "[color=silver]", "<span style=\"color: silver\">" },
{ "[color=brown]", "<span style=\"color: brown\">" },
{ "[color=yellow]", "<span style=\"color: yellow\">" },
{ "[color=olive]", "<span style=\"color: olive\">" },
{ "[color=cyan]", "<span style=\"color: cyan\">" },
{ "[color=violet]", "<span style=\"color: violet\">" },
{ "[color=white]", "<span style=\"color: white\">" },
{ "[color=black]", "<span style=\"color: black\">" },
{ "[color=pink]", "<span style=\"color: pink\">" },
{ "[color=purple]", "<span style=\"color: purple\">" },
{ "[color=navy]", "<span style=\"color: navy\">" },
{ "[color=beige]", "<span style=\"color: beige\">" },
{ "[list]", "<ul>" },
{ "[/list]", "</ul>" },
{ "[list=1]", "<ul type=\"1\">" },
{ "[/list=1]", "</ul>" },
{ "[list=a]", "<ul type=\"a\">" },
{ "[/list=a]", "</ul>" },
{ "[list=A]", "<ul type=\"A\">" },
{ "[/list=A]", "</ul>" },
{ "[list=i]", "<ul type=\"i\">" },
{ "[/list=i]", "</ul>" },
{ "[list=I]", "<ul type=\"I\">" },
{ "[/list=I]", "</ul>" },
{ "[*]", "<li>" },
{ "[code]", "<pre>" },
{ "[/code]", "</pre>" },
{ "[quote]" , "<table width='96%' cellspacing='1' cellpadding='3' border='0' align='center'> |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.