Difference between revisions of "HowTo:Configure your favorite text editor to work with POV-Ray"

From POV-Wiki
Jump to navigation Jump to search
(add section for BSD)
(→‎Instructions: elaborate)
Line 27: Line 27:
 
# Scroll to the section labeled "Define the Lexer menu". Uncomment the line that reads:<pre>#P&OV-Ray SDL|pov||\</pre>
 
# Scroll to the section labeled "Define the Lexer menu". Uncomment the line that reads:<pre>#P&OV-Ray SDL|pov||\</pre>
 
# It should now look like this:<pre>P&OV-Ray SDL|pov||\</pre>
 
# It should now look like this:<pre>P&OV-Ray SDL|pov||\</pre>
# After restarting SciTE Povray should now appear in the "Language" menu.
+
# After restarting SciTE an entry for POV-Ray SDL should now appear in the "Language" menu.
  
 
To set up SciTE to send files to POV-Ray for rendering:
 
To set up SciTE to send files to POV-Ray for rendering:
Line 34: Line 34:
 
# Scroll down to where it says:<pre>command.compile.*.pov=pvengine.exe $(FileName)</pre>Change the file path to reflect the location of your POV-Ray installation. On my system (Windows 7) it ended up being:<pre>command.compile.*.pov="C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\bin\pvengine64.exe" "$(FilePath)"</pre>
 
# Scroll down to where it says:<pre>command.compile.*.pov=pvengine.exe $(FileName)</pre>Change the file path to reflect the location of your POV-Ray installation. On my system (Windows 7) it ended up being:<pre>command.compile.*.pov="C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\bin\pvengine64.exe" "$(FilePath)"</pre>
 
# Do the same for where it says:<pre>command.go.*.pov=pvengine.exe $(FileName)</pre>On my system it ended up being:<pre>command.go.*.pov="C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\bin\pvengine64.exe" "$(FilePath)"</pre>
 
# Do the same for where it says:<pre>command.go.*.pov=pvengine.exe $(FileName)</pre>On my system it ended up being:<pre>command.go.*.pov="C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\bin\pvengine64.exe" "$(FilePath)"</pre>
# After restarting SciTE pressing the F5 button should now cause the file to be loaded into POV-Ray and rendered.
+
# After restarting SciTE pressing the F5 key should now automatically cause the file to be opened in POV-Ray for rendering.
  
 
To set up SciTe for context-sensitive POV-Ray help:
 
To set up SciTe for context-sensitive POV-Ray help:
Line 40: Line 40:
 
# Select the "Options" menu. Select "Open pov.properties". A text file with POV-Ray-specific configuration settings will open in the editor window.
 
# Select the "Options" menu. Select "Open pov.properties". A text file with POV-Ray-specific configuration settings will open in the editor window.
 
# Scroll down to where it says:<pre>command.help.$(file.patterns.pov)=$(CurrentWord)!...</pre>change the file path to reflect the location of your POV-Ray installation. On my system it was:<pre>command.help.$(file.patterns.pov)=$(CurrentWord)!C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\help\povray36.chm</pre>
 
# Scroll down to where it says:<pre>command.help.$(file.patterns.pov)=$(CurrentWord)!...</pre>change the file path to reflect the location of your POV-Ray installation. On my system it was:<pre>command.help.$(file.patterns.pov)=$(CurrentWord)!C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\help\povray36.chm</pre>
# After a restart SciTE will now open the POV-Ray help file to the correct entry based on the word you have highlighted.
+
# After restarting SciTE pressing the F1 key should now automatically open the POV-Ray help file to the correct entry based on the keyword you have highlighted.
  
 
==External links==
 
==External links==
 
*[http://news.povray.org/povray.unix/thread/%[email protected]%3E/ Comfortable editor for POV-Ray under Debian Linux?]
 
*[http://news.povray.org/povray.unix/thread/%[email protected]%3E/ Comfortable editor for POV-Ray under Debian Linux?]
 
*[http://www.povray.org/download/unix-tools.php Useful tools for POV-Ray for Unix]
 
*[http://www.povray.org/download/unix-tools.php Useful tools for POV-Ray for Unix]

Revision as of 04:41, 24 June 2010

POV-Ray supporting text editors

BSD
Linux
Windows

Instructions

SciTE on Windows

Syntax highlighting is already supported by default. However, POV-Ray is missing from some of the menus. To fix this:

  1. Select the "Options" menu. Select "Open Global Options File". A text file with a bunch of SciTE configuration settings will open in the editor window.
  2. Scroll down to the section that looks like this:
    source.files=*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\
    *.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\
    *.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\
    *.java;*.js;*.py;*.pl;*.rb;*.cgi;*.lua;*.conf;\
    make*;*.mak;\
    *.properties;*.html;*.xml;*.iface;*.bat;*.el
  3. Add the common POV-Ray file extensions to the list. These include the POV, INC, INI and MCR extensions. It should now look like this:
    source.files=*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\
    *.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\
    *.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\
    *.java;*.js;*.py;*.pl;*.rb;*.cgi;*.lua;*.conf;\
    make*;*.mak;\
    *.properties;*.html;*.xml;*.iface;*.bat;*.el;*.pov;*.inc;*.ini;*.mcr
  4. After restarting SciTE Povray source files should now be listed in the "Open File", "Save File", etc. dialogs.
  5. Scroll to the section labeled "Define the Lexer menu". Uncomment the line that reads:
    #P&OV-Ray SDL|pov||\
  6. It should now look like this:
    P&OV-Ray SDL|pov||\
  7. After restarting SciTE an entry for POV-Ray SDL should now appear in the "Language" menu.

To set up SciTE to send files to POV-Ray for rendering:

  1. Select the "Options" menu. Select "Open pov.properties". A text file with POV-Ray-specific configuration settings will open in the editor window.
  2. Scroll down to where it says:
    command.compile.*.pov=pvengine.exe $(FileName)
    Change the file path to reflect the location of your POV-Ray installation. On my system (Windows 7) it ended up being:
    command.compile.*.pov="C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\bin\pvengine64.exe" "$(FilePath)"
  3. Do the same for where it says:
    command.go.*.pov=pvengine.exe $(FileName)
    On my system it ended up being:
    command.go.*.pov="C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\bin\pvengine64.exe" "$(FilePath)"
  4. After restarting SciTE pressing the F5 key should now automatically cause the file to be opened in POV-Ray for rendering.

To set up SciTe for context-sensitive POV-Ray help:

  1. Select the "Options" menu. Select "Open pov.properties". A text file with POV-Ray-specific configuration settings will open in the editor window.
  2. Scroll down to where it says:
    command.help.$(file.patterns.pov)=$(CurrentWord)!...
    change the file path to reflect the location of your POV-Ray installation. On my system it was:
    command.help.$(file.patterns.pov)=$(CurrentWord)!C:\Users\...username...\AppData\Roaming\POV-Ray\v3.6\help\povray36.chm
  3. After restarting SciTE pressing the F1 key should now automatically open the POV-Ray help file to the correct entry based on the keyword you have highlighted.

External links