Dreeam-qwq / TrMenu

Modern & Advanced Menu-Plugin for Minecraft Servers
Other
72 stars 17 forks source link

Some fixes and more icon confguration #62

Closed Rubenicos closed 5 months ago

Rubenicos commented 5 months ago

Additions

Bug fixes

Rubenicos commented 5 months ago

btw, I made a custom syntax highlight for Sublime Text that detect menu scripts and add color to Kether / JavaScript conditions

Click to show ```yaml %YAML 1.2 --- name: YAML (TrMenu) file_extensions: - yaml - yml scope: source.yaml contexts: main: - match: '#' scope: punctuation.definition.comment push: line_comment # Menu scripts - match: ^(?i)(fun(ction)?|script)s?([:]) captures: 0: punctuation.definition 1: punctuation.definition 3: punctuation.separator push: menu-functions # JavaScript condition - match: ^( +) - ((?i)condition)([:]) ['](([$]|js:) ) captures: 0: punctuation.definition 1: punctuation.definition 3: punctuation.separator 4: constant.character.escape embed: scope:source.js embed_scope: menu.condition.code.js escape: (?

Installation

  • Open Sublime Text
  • Go to Preferences > Browse Packages
  • Open User folder
  • Create a file named YAML (TrMenu).sublime-syntax
  • Paste the above syntax configuration and save the file
  • Restart Sublime Text
  • Select "YAML (TrMenu)" from right below bar when you open a menu file

trmenu syntax