Emacs Mode for Danger rsrc Files
No notes
Syntax:
Lisp
(global-font-lock-mode 1) (global-auto-revert-mode 1) (global-set-key "\C-x\C-b" 'electric-buffer-list) (global-set-key "\C-l" 'goto-line) (set-face-foreground 'font-lock-comment-face "dark red") (define-generic-mode 'rsrc-mode '("#") '("int" "string" "eventData" "eventWhat" "className" "title" "id" "focusOrder" "font" "initialValue" "initialFocus" "disabled" "invisible" "hasBorder" "acceptsFocus" "transparent" "notTransparent" "backgroundColor" "eventListener" "application" "parentWindow" "parentContainer" "toolTip" "focusUp" "focusDown" "focusLeft" "focusRight" "debugBounds" "width" "widthPct" "fillToLeft" "fillToRight" "height" "heightPct" "fillToTop" "fillToBottom" "matchWidth" "matchHeight" "top" "bottom" "left" "right" "centerHorizontally" "centerVertically" "center" "positionAbove" "positionBelow" "positionToLeft" "positionToRight" "alignTop" "alignBottom" "alignLeft" "alignRight" "alignVertical" "alignHorizontal" "alignWithParentTop" "alignWithParentBottom" "alignWithParentLeft" "alignWithParentRight" "alignBaseline" "positionBelowGroupBoxHeading" "positionDynamically" "resizeDynamically" "package" "include" "interface" "events" "bitmap" "shortcutLabel" "shortcut" "doesNotAcceptFocus" "text" "justifyLeft" "doesNotHaveBorder" "image" "icon" "iconAlignLeft" "iconAlignRight" "fullScreen" "row" "initialText" "initiallySelectAll" "textColor" "maxFontSize" "smallSysFont" "boldSysFont" "showCancel" "autoCap" "autoText" "spellCheck" "numDisplayLines" "position" "advanceFocusOnReturn" "stringArray" "endStringArray" "menu" "endMenu" "container" "endContainer" "menuItem" "scrollView" "endScrollView" "staticText" "staticTextBox" "button" "groupBox" "textField" "endScreen" "view" "endDialog" "progressBar" "editText" "listView" "endListView" "endRow" "endLabeledGrid" "endGroupBox" "screen" "dialog" "event" "italicSysFont" "defaultFrameColor" "labeledGrid" "justifyRight" "defaultDividerColor" "passwordField" "doneButton" "buttonBottom1" "buttonBottom2" "buttonBottom3" "buttonTop1" "buttonTop2" "buttonTop3" "cancelButton" "radioButton" "IF" "ELSEIF" "splashScreen" "endSplashScreen" "ENDIF" "ELSE" "maxLength" "checkBox" "popupMenu" "rightBorder" "topBorder" "leftBorder" "bottomBorder" "ringTonePicker" "checkBox" ) '(("[ \t\n][0-9A-Z_x]+[ \t\n]" . 'font-lock-variable-name-face)) '(".rsrc\\'" ) nil "Major mode for editing Danger rsrc files.")