View Single Post
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-02-2017 , 06:15   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #60

Problem still the same
Code:
Compiling test... Current time is: 13:14:45.04 - Sat
Took 0:00:00,02 seconds to run this script.
and still the same
Code:
Package Control Messages
========================

Project Specific Syntax Settings
--------------------------------

  Project Specific Syntax Settings
  ================================
  
  This package allows syntax settings to be specified per project.
  
  In your `.sublime-project` file, you just need to add a `syntax_override` section, like so.
  
  ```json
  {
      ...
  
      "syntax_override": {
          "\\.html$": ["HTML Underscore Syntax", "HTML (Underscore)"]
      }
  }
  ```
  
  The `syntax_override` section can contain as many key/value pairs as you like.
  
  The easiest way to construct these key/value pairs is to open an existing file in your project, set the syntax you would like to use for that file with the `View > Syntax > ...` menus (or the command palette), right click in the file editor area, and select the `Project Specific Syntax > Copy syntax setting to clipboard` menu item. This menu item is also available via the command palette. Once copied to the clipboard, simply open your project file and paste the new key/value pair into the `syntax_override` section. Be sure to add any necessary commas to separate multiple key/value pairs so your project file is still valid JSON.
  
  If you need more control, you can construct your own key/value pairs. The key should be a regular expression that will be matched against the name of the file. Note that the `.` in `.html` has to be escaped to `\.` since it will match any character otherwise. And since this is a JSON string, we need to escape the slash, so we end up with `\\.`.
  
  The value in the key/value pair should be an array containing two or more strings. All but the last string in this array are the names of the package directories containing the syntax file and the last is the name of the syntax. Root around in Sublime Text's directory structure to find files that end with `.tmLanguage`. The names of these files (minus the `.tmLanguage` extension) are what you would use for the last string. Typically, you will only have two strings, a directory name and the syntax file name (minus `.tmLanguage` file extension), but this is dependent on the package's directory structure.
__________________
Depresie is offline