Scite User Options - Wiki - monket.net - 使用 Google 工具栏进行发送

6 views
Skip to first unread message

nile black

unread,
Apr 29, 2007, 11:12:24 AM4/29/07
to jm...@googlegroups.com
Scite User Options - Wiki - monket.net

Scite User Options

SciTEUser.properties

split.vertical=0
tabbar.visible=1
statusbar.visible=1
line.margin.visible=1
line.margin.width=3+
margin.width=0
view.whitespace=1
whitespace.fore=#E8E8E8
load.on.activate=1
reload.preserves.undo=1
default.file.ext=.txt
title.show.buffers=1
open.dialog.in.file.directory=1
buffers=100
tabsize=4
indent.size=4
use.tabs=0
tab.indents=0
backspace.unindents=1
cache.layout=1
output.wrap=1
output.cache.layout=0
wrap.visual.flags=1
wrap.visual.flags.location=3
wrap.visual.startindent=0
vc.home.key=1
wrap.aware.home.end.keys=1
start.in.monospaced.mode=1
style.*.37=fore:#DADADA,back:#FFFFFF

#selection.fore=#ff0000
selection.alpha=60
selection.back=#0022ff

position.width=-1
position.height=-1

tabbar.hide.one=0
tabbar.multiline=0

caret.fore=#5555ee
caret.width=2

caret.line.back=#000000
caret.line.back.alpha=10

save.on.deactivate=1
save.session=1

title.full.path=1
wrap=1

font.base=font:Andale Mono,size:10
font.small=font:Andale Mono,size:9
font.comment=font:Andale Mono,size:10,italics
font.code.comment.box=$(font.comment)
font.code.comment.line=$(font.comment)
font.code.comment.doc=$(font.comment)
font.text=font:Andale Mono,size:10
font.text.comment=font:Andale Mono,size:10
font.embedded.base=font:Andale Mono,size:10
font.embedded.comment=font:Andale Mono,size:10,italics
font.monospace=font:Andale Mono,size:10
font.vbs=font:Andale Mono,size:10
font.js=font:Andale Mono,size:10


buffers.zorder.switching=1

warning.findwrapped=100
warning.notfound=300
warning.nootherbookmark=300

caret.policy.xslop=1
caret.policy.width=50
caret.policy.xstrict=0
caret.policy.xeven=0
caret.policy.xjumps=0

caret.policy.yslop=1
caret.policy.lines=5
caret.policy.ystrict=1
caret.policy.yeven=1
caret.policy.yjumps=0

visible.policy.strict=1
visible.policy.slop=0
visible.policy.lines=5

find.mark=#0000FF
bookmark.back=#00bbff
bookmark.alpha=30


find.files=*

find.replace.advanced=1


file.patterns.web=*.html;*.htm;*.asp;*.shtml;*.htd;*.jsp;*mht
file.patterns.php=*.php3 ;*.phtml;*.php
file.patterns.html=$(file.patterns.web);$(file.patterns.php);*.htt;*.cfm;*.tpl;*.dtd;*.hta


user.shortcuts=\
Ctrl+T|IDM_NEW|

command.name.1.$(file.patterns.html)=HTML Tidy Selection
command.1.$(file.patterns.html)=tidy -config "C:\Program Files\Scintilla Text Editor\snippet.tidy" -f "c:\tidyerrors.txt"
command.input.1.$(file.patterns.html)=$(CurrentSelection)
command.subsystem.1.$ (file.patterns.html)=0
command.replace.selection.1.$(file.patterns.html)=1
command.save.before.1.$(file.patterns.html)=1
command.quiet.1.$(file.patterns.html)=1

command.name.2.*=Markdown
command.2.*=perl "C:\Program Files\Scintilla Text Editor\Markdown_1.0.1\Markdown.pl"
command.input.2.*=$(CurrentSelection)
command.subsystem.2.*=0
command.replace.selection.2.*=2
command.save.before.2.*=1
command.quiet.2.*=1

command.name.3.*=SmartyPants
command.3.*=perl "C:\Program Files\Scintilla Text Editor\SmartyPants_1.5.1\SmartyPants.pl"
command.input.3.*=$(CurrentSelection)
command.subsystem.3.*=0
command.replace.selection.3.*=2
command.save.before.3.*=1
command.quiet.3.*=1

command.name.4.*=HTML Character Entities
command.4.*=php "c:\Program Files\Scintilla Text Editor\tools\html-character-entities.php"
command.input.4.*=$ (CurrentSelection)
command.subsystem.4.*=0
command.replace.selection.4.*=2
command.save.before.4.*=1
command.quiet.4.*=1

command.name.5.$(file.patterns.html)=Tidy Lint
command.5.$(file.patterns.html)=tidy -q -o nul
command.input.5.$(file.patterns.html)=$(CurrentSelection)
command.subsystem.5.$(file.patterns.html)=0
command.save.before.5.$(file.patterns.html)=1


# Use unicode by default
code.page=65001

# Keep whatever line endings exist in the file
eol.mode=LF
eol.auto=1

# Open command prompt in this directory
# 1. works if directory follows active file;
# if not, comment out command.7.* line
# and uncomment the currently commented version
# If using alternate method, will NOT switch drives
# automatically
# 2. If running on Win9x/Me, change the word
# "cmd" to "command" for the correct command processor
command.name.7.*=Command Prompt Here
command.7.*=cmd /K
#command.7.*=cmd /K CD $(FileDir)
command.subsystem.7.*=1

#Open directory of current file in explorer
command.name.8.*=Explore This Directory
command.8.*=c:\windows\explorer.exe "$(FileDir)"
command.subsystem.8.*=2

#Generic "START" Command
# works for any highlighted file/path
# Allows rapid browse to a URL or shell execution of console commands
# 1. Note that this actually "captures" the output of
# cmd.exe; to avoid this, set the subsystem to 1.
# you will see a command prompt window flash open briefly
# 2. If running on Win9x/Me, change the word
# "cmd" to "command" for the correct command processor
# to URL browse, simply select the ENTIRE address and
# select this command.
command.name.9.*=Start/Browse
command.9.*=cmd /c start $(CurrentSelection)
command.subsystem.9.*=0

html-character-entities.php

<?php // -*- coding: utf-8 -*-

$encodings = array(
'–' => '&#8211;',
'—' => '&#8212;',
'...' => '&#8230;',
'…' => '&#8230;',
'"' => '&#8220;',
'"' => '&#8221;',
''' => '&#8216;',
''' => '&#8217;',
"·\t" => "*\t", // When pasting lists from word they use this bullet, convert to star which markdown will process as list
);

while (!feof(STDIN)) {
$buffer = fgets(STDIN, 4096);
//echo mb_convert_encoding(htmlspecialchars($buffer, ENT_NOQUOTES, 'UTF-8'), 'HTML-ENTITIES', 'UTF-8');

$buffer = strtr($buffer, $encodings);
$buffer = mb_convert_encoding($buffer, 'HTML-ENTITIES', 'UTF-8');

echo $buffer;
}

?>

Last edited on August 31, 2006 12:17 am.

Copyright © 2003 Karl O'Keeffe

Reply all
Reply to author
Forward
0 new messages