summaryrefslogtreecommitdiff
path: root/sapi/servlet/formatter.java
diff options
context:
space:
mode:
authorSam Ruby <rubys@php.net>2000-03-05 21:35:24 +0000
committerSam Ruby <rubys@php.net>2000-03-05 21:35:24 +0000
commit313de641eb3568e6c1c850046ec79563dafcd6f1 (patch)
tree3de6c45ec9295a38e80f344efabc12b45da1ed75 /sapi/servlet/formatter.java
parent56251a7239e7785387c69a8e75155fbf23b10124 (diff)
downloadphp-git-313de641eb3568e6c1c850046ec79563dafcd6f1.tar.gz
Add support for PHP syntax highlighting
Remove debug output Fix trap when string to be output is not null terminated Add a MS workspace for project level dependencies Match case of contentType header
Diffstat (limited to 'sapi/servlet/formatter.java')
-rw-r--r--sapi/servlet/formatter.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/sapi/servlet/formatter.java b/sapi/servlet/formatter.java
new file mode 100644
index 0000000000..7e4605f70c
--- /dev/null
+++ b/sapi/servlet/formatter.java
@@ -0,0 +1,34 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.0 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_0.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: Sam Ruby (rubys@us.ibm.com) |
+ +----------------------------------------------------------------------+
+*/
+
+package net.php;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+public class formatter extends servlet {
+
+ public void service(HttpServletRequest request,
+ HttpServletResponse response)
+ throws ServletException
+ {
+ display_source_mode = true;
+ super.service(request, response);
+ }
+
+}