Difference between revisions of "Syntax Highlighting for smartGENERATOR"

From BITPlan Wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
This page describe the Syntax Highlighting options supplied for {{Link|target=smartGENERATOR}}
 
= Ultraedit =
 
= Ultraedit =
[[File:UltraEditLogo.png|150px|left]] Ultraedit uses so called "Wordfiles" for syntax highlighting
+
[[File:UltraEditLogo.png|120px|left]] Ultraedit uses so called "Wordfiles" for syntax highlighting
  
 
To add the [[File:Smartgenerator.uew|smartGENERATOR Wordfile for Ultraedit]] you might want to follow the instructions at:
 
To add the [[File:Smartgenerator.uew|smartGENERATOR Wordfile for Ultraedit]] you might want to follow the instructions at:
 
* https://www.ultraedit.com/support/tutorials-power-tips/ultraedit/add-a-wordfile.html
 
* https://www.ultraedit.com/support/tutorials-power-tips/ultraedit/add-a-wordfile.html
 
or use the automatic install script you find below.
 
or use the automatic install script you find below.
 +
== Example of Ultraedit smartGENERATOR syntax highlighting ==
 +
[[File:shuex.png|960px]]
 +
= Vim =
 +
[[File:Vim-3D-blue-clouds.jpg|140px|left]]
 +
You can install the [[File:Smartgen.vim|Vim Syntaxhighlighting definition file smartgen.vim]] in your vim environment and manually call:
 +
<source lang='vim'>
 +
set syntax=smartgen
 +
</source>
 +
to activate it. The sgsyntax script below will automatically find your vim base directory and also modify your filetypes.vim file. Unfortunately there is a
 +
special rule for configure.in in filetypes.vim so you might want to manually move the
 +
<source lang='vim'>
 +
" smartGENERATOR *.in files
 +
au BufNewFile,BufRead *.in setf smartgen
 +
</source>
 +
definition up to where configure.in his handled or even remove that special case in favor of the smartGENERATOR case
 +
== Example of Vim smartGENERATOR syntax highlighting ==
 +
[[File:shvim.png|960px]]
  
= Vim =
 
 
= Eclipse =
 
= Eclipse =
[[File:Eclipse-SVG.svg|150px|left]]
+
[[File:Eclipse-SVG.svg|120px|left]]
 +
== smartGENERATOR Editor plugin ==
 
The [[File:SmartGenEditorPlugin.zip|smartGENERATOR Editor plugin for Eclipse]] can be used to install an editor that can syntax-highlight the smartGENERATOR Template files.
 
The [[File:SmartGenEditorPlugin.zip|smartGENERATOR Editor plugin for Eclipse]] can be used to install an editor that can syntax-highlight the smartGENERATOR Template files.
 
It depends on your version of Eclipse how this Eclipse Version 2.0 Plugin needs to be installed.
 
It depends on your version of Eclipse how this Eclipse Version 2.0 Plugin needs to be installed.
Line 15: Line 33:
 
For newer versions you might want to unzip the contents to the dropins/eclipse/plugins directory or use the install script below. Please also make sure you
 
For newer versions you might want to unzip the contents to the dropins/eclipse/plugins directory or use the install script below. Please also make sure you
 
install the Eclipse Version 2.0 Plugin support into your eclipse environment see https://stackoverflow.com/a/24519677/1497139.
 
install the Eclipse Version 2.0 Plugin support into your eclipse environment see https://stackoverflow.com/a/24519677/1497139.
 +
 +
To call the smartgen editor right click open with in the package explorer and the select "smartgen" as the editor:
 +
 +
[[File:eclipse_sheditor.png|400px]]
 +
== Example of Eclipse smartGENERATOR syntax highlighting ==
 +
[[File:sheclipse.png|960px]]
  
 
= Syntaxhighlighting install Script =
 
= Syntaxhighlighting install Script =
 +
The Bash Script [[File:Sgsyntax.sh]] has been tested on Mac OS (Macports environment) and Linux to install the three different flavors of Syntax Highlighting.
 +
Even if you intend to install the syntax highlighting in a different environment the source code might give you some insight on what is necessary.
 +
Please also give feedback to support@bitplan.com if you need adaptions to your environment.
 +
[[Category:smartGENERATOR]]

Latest revision as of 07:54, 9 April 2024

This page describe the Syntax Highlighting options supplied for smartGENERATOR

Ultraedit

UltraEditLogo.png

Ultraedit uses so called "Wordfiles" for syntax highlighting

To add the File:Smartgenerator.uew you might want to follow the instructions at:

or use the automatic install script you find below.

Example of Ultraedit smartGENERATOR syntax highlighting

Shuex.png

Vim

Vim-3D-blue-clouds.jpg

You can install the File:Smartgen.vim in your vim environment and manually call:

set syntax=smartgen

to activate it. The sgsyntax script below will automatically find your vim base directory and also modify your filetypes.vim file. Unfortunately there is a special rule for configure.in in filetypes.vim so you might want to manually move the

" smartGENERATOR *.in files
au BufNewFile,BufRead *.in setf smartgen

definition up to where configure.in his handled or even remove that special case in favor of the smartGENERATOR case

Example of Vim smartGENERATOR syntax highlighting

Shvim.png

Eclipse

Eclipse-SVG.svg

smartGENERATOR Editor plugin

The File:SmartGenEditorPlugin.zip can be used to install an editor that can syntax-highlight the smartGENERATOR Template files. It depends on your version of Eclipse how this Eclipse Version 2.0 Plugin needs to be installed. For Eclipse Versions prior to Luna you can simply unpack the Plugin from the ZIP file so that it contents are in the plugin directory (please note that the zip is including the plugin directory so it may be necessary to move the content after unpacking).

For newer versions you might want to unzip the contents to the dropins/eclipse/plugins directory or use the install script below. Please also make sure you install the Eclipse Version 2.0 Plugin support into your eclipse environment see https://stackoverflow.com/a/24519677/1497139.

To call the smartgen editor right click open with in the package explorer and the select "smartgen" as the editor:

Eclipse sheditor.png

Example of Eclipse smartGENERATOR syntax highlighting

Sheclipse.png

Syntaxhighlighting install Script

The Bash Script File:Sgsyntax.sh has been tested on Mac OS (Macports environment) and Linux to install the three different flavors of Syntax Highlighting. Even if you intend to install the syntax highlighting in a different environment the source code might give you some insight on what is necessary. Please also give feedback to support@bitplan.com if you need adaptions to your environment.