Vectric Syntax Libraries: Difference between revisions

From SDK
Jump to navigation Jump to search
Line 37: Line 37:




<nowiki> --[[-- </nowiki>
 
<nowiki>  Use this file to specify **User** preferences.
'''For Example:'''
  Review [examples](+C:\Program Files\ZeroBrains\cfg\user-sample.lua) or check [online documentation]</nowiki>
 
(http://studio.zerobrane.com/documentation.html) for details.
<nowiki> --[[--  
--]]--
    Use this file to specify **User** preferences.
package "striptrailingwhitespace.lua"
    Review [examples](+C:\Program Files\ZeroBrains\cfg\user-sample.lua) or check [online documentation]
package "autodelimitersurroundselection.lua"
    (http://studio.zerobrane.com/documentation.html) for details.
styles = loadfile('cfg/tomorrow.lua')('SciTeLuaIDE')
          --]]--
stylesoutshell = styles -- apply the same scheme to Output/Console windows
    package "striptrailingwhitespace.lua"
styles.auxwindow = styles.text -- apply text colors to auxiliary windows
    package "autodelimitersurroundselection.lua"
styles.calltip = styles.text -- apply text colors to tooltips
    styles = loadfile('cfg/tomorrow.lua')('SciTeLuaIDE')
table.insert(api,'Vectric') </nowiki>
    stylesoutshell = styles -- apply the same scheme to Output/Console windows
    styles.auxwindow = styles.text -- apply text colors to auxiliary windows
    styles.calltip = styles.text -- apply text colors to tooltips
    table.insert(api,'Vectric') </nowiki>


[[File:Back.jpg|right|50px|link=Main Page]]
[[File:Back.jpg|right|50px|link=Main Page]]

Revision as of 15:55, 23 February 2023

Back.jpg


Obtain Syntax Library

Download: | Vectric-ZeroBrane_API.zip

Open and extract the, Vectric.lua file from the zip file and copy Vectric.lua to "C:\ .... \ZeroBrains\api\lua" directory

Configuring library

To enable the Vectric Syntax Libraries, open ZeroBrane Studio and navigate to the Edit pull down menu, Preferences and select Settings: User.

Add the following line to the bottom of file

table.insert(api,'Vectric')


Vectric API












For Example:

 --[[-- 
    Use this file to specify **User** preferences.
    Review [examples](+C:\Program Files\ZeroBrains\cfg\user-sample.lua) or check [online documentation]
    (http://studio.zerobrane.com/documentation.html) for details.
          --]]--
     package "striptrailingwhitespace.lua"
     package "autodelimitersurroundselection.lua"
     styles = loadfile('cfg/tomorrow.lua')('SciTeLuaIDE')
     stylesoutshell = styles -- apply the same scheme to Output/Console windows
     styles.auxwindow = styles.text -- apply text colors to auxiliary windows
     styles.calltip = styles.text -- apply text colors to tooltips
     table.insert(api,'Vectric') 
Back.jpg