📄 htmlstrip
字号:
#! /usr/bin/env slsh% -*- mode: slang -*-%_debug_info = 1;% This file strips HTML tags from one or more html files and write the result% to stdout. It is very simple minded.define process_file (file){ variable fp, l; if (file != NULL) { fp = fopen (file, "r"); if (fp == NULL) { () = fputs (sprintf ("Unable to open %s\n", file), stderr); return; } } else fp = stdin; foreach (fp) { l = (); l = strtrim (str_uncomment_string (l, "<", ">")); !if (strlen (l)) continue; () = fputs (l, stdout); () = fputs ("\n", stdout); }}if (__argc == 1){ if (isatty (stdin)) { () = fprintf (stderr, "Usage: %s [files...]\n", __argv[0]); exit (1); } process_file (NULL); exit (0);}foreach (__argv[[1:]]) process_file ();exit (0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -