您的位置:首页 > 编程语言 > Lua

UltraEdit配置python和lua环境

2015-08-23 23:58 567 查看
【语法高亮】

在UltraEdit的wordfile中添加python和lua的语法支持(红色的为python,蓝色的为lua):

/L10"Python" Line Comment = # Block Comment One = """ Block Comment Off = """ Escape Char = \ File Extensions = PY PYW

/Indent Strings = ":"

/Function String 1 = "%[ ,^t]++def[ ]+^([a-zA-Z0-9_]+*^):"

/Function String 2 = "%[ ,^t]++^(##[ a-zA-Z0-9_]+*^)##"

/Function String 3 = "%[ ,^t]++^(class[ ]+[a-zA-Z0-9_]+*^):"

/Delimiters = []{}()<>="''.,:+

/C1"Reserved Words"

and assert

break

class continue

def del

elif else except exec

finally for from

global

if import in is

lambda

map

not

None

or

pass print

raise range return

try

while

/C2"Built-in Functions"

abs apply

callable chr cmp coerce compile complex

delattr dir divmod

eval execfile

filter float

getattr globals

hasattr hash hex

id input int intern isinstance issubclass

joinfields

len list local long

max min match

oct open ord

pow

raw_input reduce reload repr round

search setattr setdefault slice str splitfields

unichr unicode

tuple type

vars

xrange

zip

__import__

/C3"__Methods__"

__abs__ __add__ __and__

__call__ __cmp__ __coerce__

__del__ __delattr__ __delitem__ __delslice__ __div__ __divmod__

__float__

__getattr__ __getitem__ __getslice__

__hash__ __hex__

__iadd__ __isub__ __imod__ __idiv__ __ipow__ __iand__ __ior__ __ixor__

__ilshift__ __irshift__

__invert__ __int__ __init__

__len__ __long__ __lshift__

__mod__ __mul__

__neg__ __nonzero__

__oct__ __or__

__pos__ __pow__

__radd__ __rdiv__ __rdivmod__ __rmod__ __rpow__ __rlshift__ __rrshift__

__rshift__ __rsub__ __rmul__ __repr__

__rand__ __rxor__ __ror__

__setattr__ __setitem__ __setslice__ __str__ __sub__

__xor__

/C4"__Attributes__"

__bases__

__class__

__dict__ __doc__

__methods__ __members__

__name__

__version__

/C5"Exceptions"

ArithmeticError AssertionError AttributeError

EOFError Exception

FloatingPointError

IOError ImportError IndentationError IndexError

KeyError KeyboardInterrupt

LookupError

MemoryError

NameError

OverflowError

RuntimeError

StandardError SyntaxError SystemError SystemExit

TabError TypeError

ValueError

ZeroDivisionError

/C6"Operators"
-=
/=
&=
^=

>>=

<<=

/C7"Common Libs"

AST atexit

BaseHTTPServer Bastion

cmd codecs commands compileall copy

CGIHTTPServer Complex

dbhash dircmp dis dospath dumbdbm

emacs

find fmt fnmatch ftplib

getopt glob gopherlib grep

htmllib httplib

ihooks imghdr imputil

linecache lockfile

macpath macurl2path mailbox mailcap

mimetools mimify mutex math

Mimewriter

newdir ni nntplib ntpath nturl2path

os ospath

pdb pickle pipes poly popen2 posixfile posixpath profile pstats pyclbr

pyexpat

Para

quopri

Queue

rand random regex regsub rfc822

sched sgmllib shelve site sndhdr string sys snmp

SimpleHTTPServer StringIO SocketServer

tb tempfile toaiff token tokenize traceback tty types tzparse

Tkinter

unicodedata urllib urlparse util uu

UserDict UserList

wave webbrowser whatsound whichdb whrandom

xdrlib xml xmlpackage

zmod

/C8"Others"

array

AzIM

Desc

fnmatch

Info

Run

struct self

StartKey StopKey
/L12"Lua" Line Comment = -- Block Comment On = [[
Block Comment Off = ]] String Chars = "' Escape Char = \ File Extensions
= LUA BIN

/Delimiters = <> , .?

/Function String 1 = "function[ ]++[a-zA-Z]*)"

/Function String 2 = "function[ ]++([ a-zA-Z]*)"

/Open Fold Strings = "function" "if" "while" "for"

/Close Fold Strings = "end"

/C1 "key words"

and

break

do

else

elseif

end

function

if in

local

nil not

or

repeat return

then

until

while

/C2

abs acos appendto ascii asin assert atan atan2

call ceil clock collectgarbage copytagmethods cos

date deg dofile dostring

error execute exit

false find floor foreach foreachvar format frexp

getbinmethod getenv getglobal gettagmethod gfind gmatch gsub

insert ipairs

ldexp log log10

match max min mod

newtag next nextvar

os

pairs print

rad random randomseed rawgetglobal rawgettable rawsetglobal rawsettable read

readfrom remove rename

seterrormethod setglobal setlocale settag settagmethod sin sqrt strbyte sub

strchar strfind string strlen strlower strrep strsub strupper

table tag tan tmpname tonumber tostring true type

write writeto

/C3

$debug

$else

$end

$endinput

$if

$ifnot

$nodebug

/C4

PI

_INPUT _OUTPUT _STDERR _STDIN _STDOUT

/C5
-
// /
<

>
~
.
/C6
,
)
}
]

/C7

cgi cgilua cgilua_url char2hexa chdir

dbluaerrorfb dblua_escape decode default_script

encodecgi encodetable escape

filetype

getvalue

hexa hexa2char html_mask

includehtml insertfield

lua_mask

maketable map mkurl

nopipe

preprocess

redirect relativeurl relative_url

saveluavar savestate script_path script_pdir script_vdir stateerrormethod

statefile stdin strsplit

unescape

/C8

DBClose DBExec DBOpen DBRow
【配置运行环境】





【设置快捷键】

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: