Makopo / sublime-text-tooltip-lsl

Provides SecondLife LSL and OpenSimulator OSSL API descriptions from kwdb database with the link to API reference wiki pages.
1 stars 0 forks source link

customizable stylesheet feature #4

Open Makopo opened 8 years ago

Makopo commented 8 years ago

Implementation plan:

TooltipLSL.sublime-settings

{
    // any of the followings
    "css":"css-lines",
    "css-file": "file path for css file"
}
buildersbrewery commented 8 years ago

https://www.sublimetext.com/3dev

Build 3116

  • Color Schemes: Added popupCss key, for defining default popup style sheets
Makopo commented 8 years ago

thx for information, i'll look that when i'm available

buildersbrewery commented 7 years ago

⚠️ This is a [WIP]:

buildersbrewery/linden-scripting-language/sublimetext/LSL/

If you use ST3119+ and add mdpopups as a dependency you can even put correctly highlighted snippets in there by setting:

// Preferences - User

    "mdpopups.sublime_user_lang_map":
    {
//      language
        "lsl":
        [
            [
//              extensions array
                "lsl"
            ],
            [
//              syntax file (without extension) paths array
                "LSL/syntaxes/LSL"
            ]
        ]
    },
    "mdpopups.use_sublime_highlighter": true,

compare:

lsl-tooltips

/cc @XenHat

XenHat commented 7 years ago

Neat!

XenHat commented 7 years ago

Just installed bb/lsl to test, and I got this upon installation and all subsequent reloads; did I screw up? image

Edit: Ah, I see. The subfolder is not a valid self-contained sublime package. I could probably fix that if there is interest.

buildersbrewery commented 7 years ago

You'd have to pack the files in the subfolder sublimetext/LSL into a zip as it says in the sublimetext folder README. You probably packed all files for all editors...

buildersbrewery commented 7 years ago

As I said above, I'm currently working on it so it may break every now and then.

XenHat commented 7 years ago

Correct, that was my first mistake. But there probably is a way to add the subfolder as a repository. I shall see what I can do.

buildersbrewery commented 7 years ago

Afaik the Github API lets you get subfolders only. At least I saw that one github.io page where you could download a subfolder of a user's repo via a three entries form.

buildersbrewery commented 7 years ago

Or instead of the pages above use svn:

svn export https://github.com/author/repo/trunk/subdirectory

XenHat commented 7 years ago

I decided to use the ZIP method for now. It would appear that sublime-text refuses to load the subfolder alone, invoking a JSON parsing error.

buildersbrewery commented 5 years ago

@まこぽさん、何か手伝う事が有ったら是非ご連絡下さい。