0

i am trying to mark lex syntax in sublime text 3

i downloaded from github package that marks the syntax of lex file and put it on

Sublime Text 3\Packages

and then i restart sublime text 3 and nothing has changed

%{

    #include <string.h>

%}

This code is fully white also after installing the package from github(the color doesn't change)

the git i cloned is- https://github.com/textmate/lex-flex.tmbundle

Chad
  • 21
  • 3

3 Answers3

0

As suggested here, for lexer syntax texmate syntax files can be used with SublimeText.

To mark lex syntax in sublime text 3:

linuxUser123
  • 529
  • 3
  • 17
0
  1. Go to C:\Users\user_name\AppData\Roaming\Sublime Text 3\Packages\User
  2. Clone git repository https://github.com/textmate/lex-flex.tmbundle
  3. In Sublimetext 3 open View -> Syntax -> Lex/Flex

In step 1, AppData folder maybe hidden, so you can either copy the path from above and replace your username; or from folder > view > [tick] hidden item.

NewCoder
  • 1
  • 1
0
  1. Go to
    C:\Users\user_name\AppData\Roaming\Sublime Text 3\Packages\User
    
  2. Clone git repository `https://github.com/textmate/lex-flex.tmbundle
    
  3. Go to
    https://raw.githubusercontent.com/textmate/lex-flex.tmbundle/master/Syntaxes/Lex%3AFlex.tmLanguage
    
    and copy all
  4. Create a new file named LexFlex.tmLanguage in:
    C:\Users\user_name\AppData\Roaming\Sublime Text 3\Packages\lex-flex.tmbundle\Syntaxes
    
    and paste what you copied in it.
  5. Save.

Now you will see lex/flex in syntax.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77