Russian version

.NET and Far

This program was designed to help you in programm sources editing using text editor of Far file manager. It helps to compose correct syntactical structures (see pict.1) in compliance with circumstance (in the spirit of unforgettable editor Multi Edit) and expressions (see pict.2) with usage of functions, methods and properties (as in IDE MS VBA, MS VS.NET, Delphi etc).

pict.1
 



pict.2
 

The program works under control of plugin Far Script Host  and consist of main script S&S.vbs and subsiduary programm and tuning files. Program has multilanguage  interface (Russian and English by default), language switching accomplishes using parameter in configuration file.

Version for plugin SHPCE distributed by Max Belugin belugin@mail.ru

Installation:

Load archive S_S.zip, unzip files in scripts folder of plugin Far Script Host (e.g., %Far%/Plugins\ScrHost\Scripts\S_S\).

If there is version 4.0 of MsXml installed in your system then run file SSxml_4.reg. Else run SSxml_3.reg. Read comments in file SSxDsc.xml.

Usage:

Program works in background and handles keystrokes. Thus following "commands" are handled:

  • . [dot] - list of methods and properties for object
  • ( [left bracket] - list of parameters for function or method
  • ??,s? - list syntactical templates for current language in multilanguages files (e.g., WSF,HTML etc);
  • f? - list of all functions for current language;
  • o? - list of all functions for current context(from language or libraries);
  • i? - switching of immediate processing options;
  • h? - show all currently used description in IE-window;
  • w? - SuperScript on the Web;
  • r? - reload settings and descriptions from xml-files;
  • a? - speak selected text;
  • l? - speak clipboard.

From offered lists it is possible to select the necessary object and to insert into the text of the program an appropriate fragment. Lists are formed on the basis of the loaded descriptions of languages and libraries.

Note: Inserting templates executes on "s?"-command or after typing keywords(see below) and calling program through plugins menu.

Adjustment:

Operating customization is made by parameter setup in SSxDsc.xml file:  

  • ParamsIntoText="0"  - insert parameters of functions/methods into text
  • ParamsIntoClipboard="1" - insert parameters of functions/methods into clipboard
  • ParamsIntoTitle="0" - insert parameters of functions/methods into titlebar
  • ProcessImmediate="1" - run commands immediately after typing (else, if "0", - after script calling through plugins menu)
  • IFaceLang = "eng" - set english interface
    ("1" - boolean TRUE, "0" - FALSE.)
  • SpecCommands - list of commands and keys
"Syntactical" tuning to languages and libraries are kept in files SSx*.xml, filenames must be enumerated in tag <LoadFiles> in file SSxDsc.xml. Tag <language> may contain attributes tabsize="ġġ" and expandtabs="1/0". This attributes  corresponds to Far Editor settings "Tab size" and "Expand Tabs to spaces". There are such files for languages VBScript, JavaScript, for labraries FarSH, WSH, MSXML etc. available in distrubutive . 

Descriptions of functions, object, methods, properties and events are obvious. The utilize of next metacommands is possible in template descriptions:

  • [-cr] - line feed  
  • [-cri] - the same, plus smart indent  
  • [-tab] - insert tab stops  
  • [-val0..9] - answers on appropriate questions (prompt0...9
  • [-block] - insert selected text block
  • [-blockcp] - cut selected text, insert statement in his place, insert text back
    (for streaming blocks only, else works like [-block])
  • [-cur] - cursor position after text insertig
  • [-cur2] - the same, plus recursive run this script
  • [-guid] - insert guid-value
  • [-filename] - insert filename

Template description looks as tag <statement>, attribute name is as keyword or command consider. It might be as well to put text of template in "brackets" <![CDATA[ ... ]]>

System requirements:

MS Windows 2000/9x with components:

Modifying features:

Program is in open sources delivered. There are VBScript, DHTML, CSS, XML and XSL used. Only Far Editor and this program are for programm modifying required. Any compilers are unnecessary.

Functions of programm files:

  • S&S.vbs  - main programm file
  • SSxDsc.xml - configuration file
  • SSxIFace.xml - interface tuning
  • SSx*.xml - languages and libraries descriptions:
    • SSxVB.NET.xml - descriptions for VB.NET
    • SSxVBS.xml - descriptions for VBScript
    • SSxJS.xml - descriptions for JS
    • SSxCS.xml - descriptions for CSharp(C#)
    • SSxPerl.xml - descriptions for Perl
    • SSxHTM.xml - descriptions of objects of IIS
    • SSxXML.xml - descriptions of objects of MS XML
    • SSxFarSH.xml - descriptions of objects of Far Scripting Host
    • SSxSystem.XXX.xml - descriptions of .NET namespaces
  • SSxDsc.xsd, SSxDsc.xdr - schemas for SSx*.xml
  • List*.xsl - lists of objects generation
  • MakeHelp.xsl - help generation

You may make any changes in text at your own risk. In success mail me.

% Download archive site-1 site-2