View Single Post
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-26-2018 , 11:28   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #105

Autocomplete doesn't work with "includes included into other includes".

AmxxEditor syntax doesn't auto set in include files.

I tried to define a key binding through AmxxEditor.sublime-build to compile plugins, but sometimes this file is auto "restarted", that means, delete all my changes and keep it as an the original. then it compile through "variant linux" instead of "variant windows".

Code:
[
	{ "keys": ["f8"], "command": "build", "args": {"build_system": "Packages/AmxxEditor/AmxxEditor.sublime-build"} },
]
Code:
{
    "working_dir": "$file_path",
    "cmd": ["sh","$packages/User/AmxxEditor/AmxxEditor.sh","$file", "$file_base_name", "$packages", "$file_path"],

    // "target": "ansi_color_build",
    "syntax": "Packages/AmxxEditor/AmxxEditorConsole.sublime-syntax",

    "variants":
    [
        {
            "name": "Build Plugin with Windows/Bat",
            "cmd": ["$packages/User/AmxxEditor/AmxxEditor.bat","$file", "$file_base_name", "$packages", "$file_path"],
        },
    ],

    "selector": "source.AmxxEditor, source.AMXX, source.sma",
    "file_regex": "^.*[\\/\\\\]+(.+)\\(([0-9]+ ?.*)\\) : (.*)",
}
__________________









Last edited by CrazY.; 07-26-2018 at 11:35.
CrazY. is offline