Smultron (Unitron) Unity Keywords

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(How to)
m (Minor spelling and grammar fixes)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
 
Smultron (Unitron) highlights only the basic keywords of the languages Javascript and C#.
 
Smultron (Unitron) highlights only the basic keywords of the languages Javascript and C#.
This article shows how you can extend the editor to highlight and autocomplete also the (most) Unity keywords.
+
This article shows how you can extend the editor to highlight and autocomplete (most) Unity keywords as well.
  
 
== Requirements ==
 
== Requirements ==
Line 9: Line 9:
  
 
== How to ==
 
== How to ==
*Download Smultron 2.2.4 (or higher) and copy it into the Unity Engine folder (like Unitron) or into the Application folder.
+
*Download Smultron 2.2.4 (or higher) and copy it into the Unity Engine folder (like Unitron) or into the Applications folder.
*Mark the Smultron package and right-click it. Select "Show package content".
+
*Select the Smultron package and right-click it. Choose "Show Package Contents".
 
*Open the folder: Content -> Resources -> Syntax Definitions.
 
*Open the folder: Content -> Resources -> Syntax Definitions.
*Copy the 2 files in the Plist.zip into this folder. Make a backup of the old files and then overwrite them.
+
*Copy the 2 files in plist.zip into this folder. Make a backup of the the old files and then overwrite them with the new versions.
 
*Launch Smultron.
 
*Launch Smultron.
*Open the Preferences (Smultron -> Preferences)
+
*Open the Preferences (Smultron -> Preferences).
*In the General Tab enable "Suggest automatically, ..." and '''disable "Include standart words"'''.
+
*In the General tab enable "Suggest automatically, ..." and '''disable "Include standard words"'''.
 
*Switch to Syntax Colours and enable Auto-complete.
 
*Switch to Syntax Colours and enable Auto-complete.
 
*Set the Syntax Colours, Text Colour, Background Colour and Background Colour of the Document list as you like it.
 
*Set the Syntax Colours, Text Colour, Background Colour and Background Colour of the Document list as you like it.
  
Now you have a useful auto-complete feature and the Unity keywords are highlighted in a different color than the Javascript or C# keywords.
+
Now you have a useful autocompletion feature, and Unity keywords are highlighted in a different color to Javascript or C# keywords.

Revision as of 11:14, 19 November 2006

Overview

Smultron (Unitron) highlights only the basic keywords of the languages Javascript and C#. This article shows how you can extend the editor to highlight and autocomplete (most) Unity keywords as well.

Requirements

How to

  • Download Smultron 2.2.4 (or higher) and copy it into the Unity Engine folder (like Unitron) or into the Applications folder.
  • Select the Smultron package and right-click it. Choose "Show Package Contents".
  • Open the folder: Content -> Resources -> Syntax Definitions.
  • Copy the 2 files in plist.zip into this folder. Make a backup of the the old files and then overwrite them with the new versions.
  • Launch Smultron.
  • Open the Preferences (Smultron -> Preferences).
  • In the General tab enable "Suggest automatically, ..." and disable "Include standard words".
  • Switch to Syntax Colours and enable Auto-complete.
  • Set the Syntax Colours, Text Colour, Background Colour and Background Colour of the Document list as you like it.

Now you have a useful autocompletion feature, and Unity keywords are highlighted in a different color to Javascript or C# keywords.

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox