SPECIFICATION: Editra Style Sheet
REVISION: 1.6
PURPOSE: Define the format for writing custom style sheets that allow for the
customization of the color scheme used to highlight text in the editor
when Syntax Highlighting is enabled.
VERSION INFO: In this initial incarnation the style sheets will only allow you
use the "Standard Tags" and "Standard Attributes" all other
definitions will be ignored by the parser. There are however
plans to make the style sheets extensible in the future to allow
for the setting of custom tags and subclassing styles to only
apply to a particular lexer. These features will likely be
introduced in the version 2 of this specification.
FILE EXTENSION: ess
SYNTAX: The syntax of an Editra Style Sheet is very similar to that of a
Cascading Style Sheet (CSS). It uses "tags" followed by the style
definition enclosed in {}'s. Attribute keywords are followed by a
colon and then the attribute values. A semicolon is used at the end of
each attribute definition as a delimiter between definitions. Comments
can be specified by placing text in between '/* */'.
BEHAVIOR: The 'default_style' tag must be defined and must define all four of
the default attributes (fore, back, face, size). All other tags with
undefined values will inherit them from this style definition.
STATEMENT FORMAT:
tag_name {
attribute1: value;
attribute2: value modifier;
}
STYLE GUIDELINES:
Although the parser is rather flexible and will allow you to define
your entire set of style definitions on one line this is very poor for
readability, so the following specifications are suggested.
Tags should be un-indented and all in lower case. Following the tag
should be 1 space and an opening curly bracket '{'. The following
line should contain the first attribute definition. This definition
should start indented 1-4 spaces past the opening curly bracket and
be all in lower case. All following attribute definitions should be
on their own line and indented to the same level as first attribute
definition. The line immediately following the last attribute definition
contains the closing curly bracket '}' which should be unindented and
lined up with the beginning of the Tag definition.
STANDARD TAGS:
- brace_good: This tag defines the style for highlighting matching braces
- brace_bad: This tag defines the style for highlighting unmatched braces
- calltip: Style to color calltip windows in
- ctrl_char: Style for control characters (Tabs, Spaces, ect...)
- line_num: Style of the line numbers in the outer left margin
- array_style: Style of arrays (currently used in perl documents)
- btick_style: Style of Back Ticks
- default_style: Style of all text not styled by other definitions
- caret_line: Sets caret line background highlight color
- char_style: Style of characters (i.e 'c')
- class_style: Style of class defs (i.e def MyClass)
- class2_style: Currently unused
- clear: Sets foreground to black, background to white
- comment_style: Style of code comment blocs
- decor_style: Style for decorators
- directive_style: Style of directives
- dockey_style: Style of documentation keywords
- error_style: Style of errors
- foldmargin_style: Style of code folding margin and markers
- funct_style: Style of Functions
- global_style: Style of global variables
- guide_style: indentation guide style
- here_style: Used to highlight HERE statements
- ideol_style: Id End of Line (used in Makefiles)
- keyword_style: Style of Primary Keywords
- keyword2_style: Style of Secondary/Type Keywords
- keyword3_style: Style of extra keywords
- keyword4_style: Style of extra/user defined keywords
- marker_style: Style for bookmarks/margin markers
- number_style: Style of numbers
- number2_style: Alternate style for numbers/verbatim defs
- operator_style: Style of Operators (i.e + = *)
- pre_style: Style of Preprocessor
- pre2_style: Alternate Preprocessor style
- regex_style: Style of Regular Expressions
- scalar_style: Style of Scalar Variables
- scalar2_style: Alternate style for Scalar Variables
- select_style: Style of text selection background
- string_style: Style of Strings (i.e "hello")
- stringeol_style: Style of unclosed strings (i.e "hello )
- unknown_style: Style of unknown statements
- userkw_style: Style for some builins and user defined keywords
STANDARD ATTRIBUTES:
- back: Defines the style of the background for the tags text area. The
acceptable values are any 6 digit HEX color code (i.e #123456)
optionally followed by a modifier (see MODIFIERS).
- face: Defines the Font used by a fonts face name. The values accepted
by this attribute are either a Face name (i.e Monaco) or a
format expression (recommended) (i.e %(mono)s). The use of
format expressions is recommended because it will allow your
style sheet to work on all platforms, as it will let Editra's
Style Manager look up an appropriate/available system font.
See FONT KEYS for more information on available format
expressions.
- fore: Defines the foreground/face color/style of the tags text area.
The acceptable values are any 6 digit HEX color code (i.e #123456)
optionally followed by a modifier (see MODIFIERS).
- size: Defines the Point Size of the font in the tags text area. The
acceptable values are any system supported font size (i.e 12)
or a format expression (i.e %(size)d). See FONT KEYS for more
information on available format expressions.
- modifiers: Defines style modifiers 'bold underline italic eol'
FONT KEYS:
The listed values below are used in format expressions to define what
font is used. To use these keys use the following expression in your
face definitions and substitute the 'xxx' with your chosen key.
Standard Expression: %(xxx)s
- primary: Users prefered primary font
- secondary: Users prefered secondary font
The next set of values are used in font size format expressions. To
use these values replace the 'xxx' in the following expression with
the chosen value.
Standard Expression: %(xxx)d
- size: The point size of the primary font
- size2: The point size of the secondary font
- size3: 2 point sizes smaller than "size"
MODIFIERS:
These keywords are used to modify style attributes.
- bold: Makes the text in the tags text area bold
- italic: Makes the text in the tags text area italicized
- eol: Extends the given attributes style to the end of the line
- underline: Enables underlining for a text area
Modifiers can be either appended to the values defined in a standard
attribute or specifed in the _modifiers_ attribute.
SPECIAL TAGS:
These tags are part of the standard tags but behave differently than
a typical tag. The differences in behavior are mostly transparent but
here is an explanation of each.
- calltip: Only Foreground and Background attributes are used
- caret_line: Only Background attribute is used
- clear: Used internally any definitions will be ignored
- foldmargi
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | Editra-0.7.0.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 75 浏览量
2022-01-11
02:17:45
上传
评论
收藏 3.77MB GZ 举报
温馨提示
共671个文件
py:332个
png:101个
mo:46个
资源来自pypi官网。 资源全名:Editra-0.7.0.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | Editra-0.7.0.tar.gz (671个子文件)
progress_4gl.4gl 843B
forth.4th 182B
dsp56k_assembly.56k 2KB
68k_assembly.68k 459B
ada.adb 289B
actionscript.as 913B
AUTHORS 842B
AUTHORS 332B
autocomp_mod 2KB
dos_batch_script.bat 341B
boo.boo 540B
c.c 422B
setup.cfg 105B
coldfusion.cfm 1012B
CHANGELOG 20KB
cilk.cilk 261B
cobra.cobra 405B
apache_conf.conf 738B
COPYING 14KB
COPYING 2KB
cpp.cpp 393B
csharp.cs 474B
c-shell_script.csh 258B
cascading_style_sheet.css 923B
nonmem_control_stream.ctl 581B
ctrl_demo 2KB
d.d 2KB
diff_file.diff 692B
django.django 607B
stata.do 302B
dot.dot 575B
.DS_Store 15KB
eiffel.e 426B
edje.edc 2KB
editra 3KB
CodeBrowser-1.5-py2.6.egg 160KB
CodeBrowser-1.5-py2.7.egg 160KB
Launch-1.13-py2.6.egg 58KB
Launch-1.13-py2.7.egg 58KB
FileBrowser-1.6-py2.6.egg 46KB
FileBrowser-1.6-py2.7.egg 45KB
PyShell-0.8-py2.6.egg 6KB
PyShell-0.8-py2.7.egg 6KB
VisualStudio.ekeys 899B
erlang.erl 774B
Cream.ess 3KB
Mocha.ess 2KB
Midnight.ess 2KB
Blue.ess 2KB
Default.ess 2KB
BlueMonday.ess 2KB
BlackBoard.ess 2KB
Dessert.ess 2KB
Guepardo.ess 1KB
editra_style_sheet.ess 391B
fortran_95.f95 902B
FAQ 211B
ferite.fe 970B
fortran_77.for 908B
glsl.glsl 446B
groovy.groovy 2KB
gui4cli.gui 471B
pyconfig.h 28KB
haskell.hs 816B
html.html 1KB
haxe.hx 455B
Editra.icns 335KB
editra_doc.icns 44KB
editra.ico 269KB
editra_doc.ico 66KB
properties.ini 287B
INSTALL 2KB
issuelist.isl 610B
inno_setup_script.iss 1KB
java.java 1KB
javascript.js 279B
kix.kix 679B
korn_shell_script.ksh 209B
LICENSE 2KB
lisp.lisp 533B
newlisp.lsp 501B
lout.lt 831B
lua.lua 795B
makefile.mak 364B
mako.mako 410B
masm.masm 424B
matlab.matlab 1KB
caml.ml 350B
objective_c.mm 885B
Editra.mo 54KB
Editra.mo 51KB
Editra.mo 48KB
Editra.mo 48KB
Editra.mo 47KB
Editra.mo 46KB
Editra.mo 45KB
Editra.mo 44KB
Editra.mo 44KB
Editra.mo 44KB
Editra.mo 44KB
共 671 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功