Zum Inhalt springen

EditPlus und Syntaxhiglighting

Erstellt am 25. April 2005 · 4 Antworten · letzte Antwort am 25. April 2005

Tags: Frage

hardcoder ·

Hallo,

Ich schliesse mich mal meinem Ultraedit-Vorredner an und biete ne ALPHA version für EditPlus:

#TITLE=TS
; TS syntax file written by web-produzent aka hardcoder. 2005-04-25
; This file is required for EditPlus to run correctly.

#DELIMITER=~!@%^&*()+-=|{}[]:;"'<>,.?
#QUOTATION1='
#QUOTATION2="
#COMMENTON=/*
#COMMENTOFF=*/
#LINECOMMENT=#
#LINECOMMENT2=//
#LINECOMMENT3=/
#ESCAPE=
#NUMBER_PATTERN=cpp
#CASE=n

#KEYWORD=HTML Tags
!DOCTYPE
A
ABBR
ACRONYM
ADDRESS
APPLET
AREA
B
BASE
BASEFONT
BGSOUND
BDO
BIG
BLINK
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CENTER
CITE
CODE
COL
COLGROUP
COMMENT
DD
DEL
DFN
DIR
DIV
DL
DT
EM
EMBED
FIELDSET
FONT
FORM
FRAME
FRAMESET
H
H1
H2
H3
H4
H5
H6
HEAD
HR
HTA:APPLICATION
HTML
I
IFRAME
IMG
INPUT
INS
ISINDEX
jsp:declaration
jsp:directive
jsp:expression
jsp:fallback
jsp:forward
jsp:getProperty
jsp:include
jsp:param
jsp:params
jsp:plugin
jsp:root
jsp:scriptlet
jsp:setProperty
jsp:useBean
KBD
LABEL
LEGEND
LI
LINK
LISTING
MAP
MARQUEE
MENU
META
MULTICOL
NEXTID
NOBR
NOFRAMES
NOSCRIPT
OBJECT
OL
OPTGROUP
OPTION
P
PARAM
PLAINTEXT
PRE
Q
S
SAMP
SCRIPT
SELECT
SERVER
SMALL
SOUND
SPACER
SPAN
STRIKE
STRONG
STYLE
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TEXTFLOW
TFOOT
TH
THEAD
TITLE
TR
TT
U
UL
VAR
WBR
XMP


#KEYWORD=HTML Attributes
abbr
accept-charset
accept
accesskey
action
align
alink
alt
applicationname
archive
autoFlush
axis
background
behavior
bgcolor
bgproperties
border
bordercolor
bordercolordark
bordercolorlight
borderstyle
buffer
caption
cellpadding
cellspacing
char
charoff
charset
checked
cite
class
classid
clear
code
codebase
codetype
color
cols
colspan
compact
content
contentType
coords
data
datetime
declare
defer
dir
direction
disabled
dynsrc
encoding
enctype
errorPage
extends
face
file
flush
for
frame
frameborder
framespacing
gutter
headers
height
href
hreflang
hspace
http-equiv
icon
id
import
info
isErrorPage
ismap
isThreadSafe
label
language
leftmargin
link
longdesc
loop
lowsrc
marginheight
marginwidth
maximizebutton
maxlength
media
method
methods
minimizebutton
multiple
name
nohref
noresize
noshade
nowrap
object
onabort
onblur
onchange
onclick
ondblclick
onerror
onfocus
onkeydown
onkeypress
onkeyup
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onreset
onselect
onsubmit
onunload
page
param
profile
prompt
property
readonly
rel
rev
rows
rowspan
rules
runat
scheme
scope
scrollamount
scrolldelay
scrolling
selected
session
shape
showintaskbar
singleinstance
size
span
src
standby
start
style
summary
sysmenu
tabindex
target
text
title
topmargin
type
urn
usemap
valign
value
valuetype
version
vlink
vrml
vspace
width
windowstate
wrap
xmlns:jsp


#KEYWORD=Reserved words
config
data
directory
external
global
includeLibs
key
marks main
plugin
PAGE_TARGET
rootline
special
sub
temp template
value

#KEYWORD=Operators and Conditions
<
>
=
{

}
[
]
^
|
||
|*|
~
`
.

#KEYWORD=Methods, Properties and Constants
addHeight
addWidth
admPanel
allWrap
ATagParams
bodyTag
case
cObject
code
collapse
content
content_from_pid_allowOutsideDomain
crop
dataWrap
defaultTemplateObjectMain
defaultTemplateObjectSub
disablePrefixComment
displayActiveOnLoad
dontHideOnMouseUp
enable
encapsLines
encapsTagList
entryLevel
expAll
expand
extTarget
field
file
fontColor
fontFile
fontSize
freezeMouseover
gmenu_layers
headerComment
headerData
hideMenuWhenNotOver
if
Image
imageLinkWrap
imgParams
index_enable
index_externals
inheritMainTemplates
inheritSubTemplates
inlineStyle2TempFile
intTarget
isTrue
JSwindow
layerStyle
linkWrap
locale_all
lockPosition
lockPosition_addSelf
max
meta
mode
newWindow
niceText
noBlur
nonTypoTagStdWrap
offset
orderBy
parseFunc
pidInList
placement
range
relativeToParentLayer
relativeToTriggerItem
removeDefaultJS
removeWrapping
renderObj
required
shortcutIcon
simulateStaticDocuments
simulateStaticDocuments_noTypeIfNoTitle
spamProtectEmailAddresses
spamProtectEmailAddresses_atSubst
stdWrap
strftime
stylesheet
target
templateObjects
templateType
text
textMaxLength
textpic
tmenu_layers
topOffset
transparentBackground
typeNum
upper
user_
workOnSubpart
wrap
wrapNonWrappedLines
ypMenu

#KEYWORD=Variables and filepaths
fileadmin/
:
$

#KEYWORD=PlugIns
tt_board
tt_guest
tt_news
tt_content
tx_macinabanners_pi1
tx_rlmptmplselector
tx_rlmptmplselector_pi1

#KEYWORD=Objects and Markers
CR_
obj
ACTIFSUB
ACT
CASE
CUR
COA
CONTENT
DB
FILE
GMENU
GMENU_LAYERS
HMENU
HTML
IFSUB
IMAGE
NO
PAGE
RO
TEMPLATE
TEXT
TMENU
TMENU_LAYERS
XY
#
hgw ·

Das wäre ja klasse, wenn es klappt. Bin schon lange EditPlus++ User und noch nicht so lange Typo3.

Habe obigen Code als .stx-Datei gespeichert und als .ctl, aber beim Arbeiten an ts-Dateien findet noch kein Highlighting statt. Als was speiherst Du die Datei in Editplus ab ? .t3 ?

Danke!!

hardcoder ·

ich verwende editPlus v2.12 (76)

ich speichere die als

ts.stx

ab. Eine acp-Datei (Autocomplete) gibt es nicht.Das hier ist nur Syntaxhighliting.

Hast du die Datei abgespeichert muss man noch unter:

Tools -> Preferences -> Files -> Settings & syntax -> File types-> Add: TS (Description: irgendwas File extensions: ts)

Dann dieses TS markieren und dann unter Settings and Syntax -> Syntax file: ebend dieses ts.stx angeben

apply / ok klicken fertig.

Dann kann man ein Stück TS-Code Copy-Pasten und

a) mit der filextension: .ts abspeichern oder
b) Document -> Refresh STX/ACP

sollte so gehen.