Code Monkey home page Code Monkey logo

sublimesettings's Introduction

SublimeSettings

Sublime HTML/JavaScript Syntax for Editing Roll20 sheets

How to use

  1. In Sublime text go to Preferences -> Browse Packages...
  2. Create a new folder called HTML(Unsure how important the foldername is)
  3. Copy the two files into the folder
  4. Add this Readme as a .yaml as well if you want to access it more easily

(This is supposed to overrule the default settings the files with the same name contains, without editing them directly. )

Features

Original settings by Cassie made html files to also display JavaScript higlight that often can be found on roll20 html files. This fork is an attempt to include a few tweaks that can come handy when working on editing Roll20 character sheets.

i18n-data html attribute highlight

The i18n-data html attribute is changed to be highlighed in orange instead of the default green for attributes. The attributes value is highlighed in blue. Handy if you're in progress of creating/editing language tags for sheets data-i18n attribute

custom html tag highlights

The HTML tags button,rolltemplate and charactermancer are changed to show up in orange instead of the default red for html tags

button

Making changes

I've included some comments in the html syntax file that should help in editing it. If you want to disable a specific highlight, Ctrl+F throught the file for instances that are specific.

Emmet

Emmet is a package that can speed up writing code, and you can easily add your own abbrevations/snippets for it. When you write the keyword and press tab, Sublime's Emmet package will autocomplete to the corresponding code snippet. Here is the few first I added(check the file to see all changes):

  • datas becomes <span data-i18n=""></span>
  • char becomes <charmancer></charmancer>
  • butt becomes <button type=\"roll\" name=\"roll_\"></button>
  • attr becomes <input type=\"text\" name=\"attr_\" value=\"\">

Reading the guide I made:

  • data becomes data": "data-i18n="" as a snippet, instead of an abbreviation, as the documentation suggested it behaved slightly differently

I also added rolltemplate and charmancer as recognized html tags and data-i18n can now autocomplete

sublimesettings's People

Contributors

anduh avatar clevett avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.