Home | | Arachnophilia | | Documentation | | Share This Page |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <head> <title> This is my web page! </title>
<meta name="GENERATOR" content="Arachnophilia 5.0"> <meta name="FORMATTER" content="Arachnophilia 5.0">
</head> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">
This is my Web page! </body> </html>
— and make it look like this with a keystroke (Ctrl-E):
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <!-- Created on Mar 1, 2002 11:29:01 AM -->
4
5 <html>
6 <head>
7 <title>
8 My web page!
9 </title>
10 <meta name="GENERATOR" content="Arachnophilia 5.0"/>
11 <meta name="FORMATTER" content="Arachnophilia 5.0"/>
12 </head>
13
14 <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">
15
16 This is my Web page!
17
18 </body>
19 </html>
20
Here is a typical Web page display (after using Beautify HTML (Ctrl-E)):And a programming display (after using Beautify Code (Ctrl+H)):1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 3 <!-- Created on Mar 1, 2002 10:48:47 AM --> 4 5 <html> 6 <head> 7 <title> 8 My Web Page! 9 </title> 10 <meta name="GENERATOR" content="Arachnophilia 5.0"/> 11 <meta name="FORMATTER" content="Arachnophilia 5.0"/> 12 </head> 13 14 <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> 15 16 This is my Web Page! 17 18 </body> 19 </html> 20
Also, as these examples show, you can export Arachnophilia's syntax-colored displays as HTML with a few keystrokes. This allows you to post your work on the Web in classic source-listing form.1 /* 2 * Created on Feb 28, 2002 3:26:55 PM 3 */ 4 5 /* TestClass is meant to demonstrate the use 6 * of Arachnophilia's custom class launcher feature. 7 * Just compile this class in place, create 8 * a macro that looks like this: 9 * "[RunCustomClassDoc:CustomClasses/TestClass]", 10 * load a suitable document, and activate the macro. 11 * The document/selection will have all its "a" letters 12 * replaced by "(the letter"a")" 13 */ 14 15 public class TestClass { 16 17 private String searchReplace(String data,String find,String replace) 18 { 19 StringBuffer sb = new StringBuffer(); 20 int a = 0,b; 21 int findLength = find.length(); 22 while((b = data.indexOf(find,a)) != -1) { 23 sb.append(data.substring(a,b)); 24 sb.append(replace); 25 a = b + findLength; 26 } 27 if(a < data.length()) { 28 sb.append(data.substring(a)); 29 } 30 return sb.toString(); 31 } 32 33 // this is the default method that custom classes 34 // must have to work with Arachnophilia's class 35 // launcher feature unless a specific method name 36 // is provided 37 38 public String processString(String s) 39 { 40 return searchReplace(s,"a","(the letter\"a\")"); 41 } 42 } 43
Home | | Arachnophilia | | Documentation | | Share This Page |