test-modify.c
上传用户:seven77cht
上传日期:2007-01-04
资源大小:486k
文件大小:1k
- /***************************************
- $Header$
- HTML modification test program
- ******************/ /******************
- Written by Andrew M. Bishop
- This file Copyright 2000 Andrew M. Bishop
- It may be distributed under the GNU Public License, version 2, or
- any higher version. See section COPYING of the GNU Public license
- for conditions under which this file may be redistributed.
- ***************************************/
- #include <stdio.h>
- #include "wwwoffle.h"
- #include "config.h"
- #include "document.h"
- #include "misc.h"
- int main(int argc,char **argv)
- {
- URL *Url;
- AddCacheInfo=0;
- AnchorModifyBegin[0]="<font color="#00B000">";
- AnchorModifyBegin[1]="<font color="#B0B000">";
- AnchorModifyBegin[2]="<font color="#B00000">";
- AnchorModifyEnd[0]="</font>";
- AnchorModifyEnd[1]="</font>";
- AnchorModifyEnd[2]="</font>";
- DisableHTMLScript=1;
- DisableHTMLBlink=1;
- if(argc==1)
- {fprintf(stderr,"usage: test-modify <URL>n");return(1);}
- Url=SplitURL(argv[1]);
- init_buffer(0);
- OutputHTMLWithModifications(1,0,Url);
- FreeURL(Url);
- return(0);
- }