xMarkup addons

Version 4.0

Content

1. IDE integration

You can use any program from described below as external text editor for xMarkup. All these programs are free.

1.1 Text editor Notepad++

Notepad++ - is an excellent replacement for standard Notepad for Windows. Notepad++ may highlights the syntax of source code and run external commands, what can be used for its transformation to configured IDE.

Download program's distributive from site sourceforge.net/projects/notepad-plus. Install the program. To configure Notepad++ for syntax highlighting of xMarkup's scripts and Icon/Unicon programs please copy file userDefineLang.xml from folder %xmwin%\editors\notepad++ to installation folder of Notepad++ (by default Program Files\Notepad++). To configure option of input autocomplete while editing xMarkup's scripts please copy file xm.api from folder %xmwin%\editors\notepad++\plugins\APIs\ to appropriate folder of Notepad++ installation.

To check open in Notepad++ some script from folder %xmwin%\examples\. If needed choose the file type: "Language" -> "xm".

Notepad++

1.2 Text editor Geany

Geany - is a lightweighted cross-platform text editor with features of syntax highlighting and configuring the tasks of compilation and build.

Download Geany's setup from site www.geany.org. Perform all installation steps. To configure Geany for syntax highlighting of Icon/Unicon programs and xMarkup scripts please perform following actions.

1. Configure the extensions of file types Open Geany editor and choose menu command "Tools" -> "Configuration files" -> "filetype_extensions.conf". Add following line to [Extensions] chapter:
Icon=*.icn;*.par;
Save changes and quit from editor.
2. Configure the lexer Please copy file filetypes.Icon.conf from folder %xmwin%\editors\geany\ to Geany's folder %geany%\data\filedefs\
3. Configure the templates Please copy file file.icn from folder %xmwin%\editors\geany\ to folder %geany%\data\templates\files\
4. Configure the snippets Open Geany editor and choose menu command "Tools" -> "Configuration files" -> "snippets.conf". Add at the end the content of file %xmwin%\editors\geany\snippets.conf. Save your changes.

To check open in Geany some script from folder %xmwin%\examples\. If needed choose file type: "Document" -> "Set Filetype" -> "Icon".

Geany

1.3 Text editor Textadept

Textadept - ia a configurable cross-platform text editor. Propose the wide functionality with help of which it can be configured to matured IDE.

Download program's distributive from site foicica.com/textadept. Unpack the archive to any folder. Textadept has the built-in lexer for Icon/Unicon. To configure Textadept for syntax highlighting of xMarkup scripts please copy file init.lua from folder %xmwin%\editors\textadept\ to Textadept's installation folder.

To check open in Textadept some script from folder %xmwin%\examples\. If needed choose file type: "Buffer" -> "Select lexer" -> "icon".

Textadept

1.4 Text editor SynWrite

Synwrite - is a configuarble text editor with pluggable add-ons. May do all that any matured and powerful IDE does.

Download setup from site www.uvviewsoft.com. Perform installation tasks. To configure SynWrite for syntax highlighting of xMarkup scripts and Icon/Unicon programs please perform following actions.

To check open in SynWrite some script from folder %xmwin%\examples\. If needed choose file type: "View" -> "Lexers" -> "Icon".

Synwrite

2. Integration with external diff tool

You can use any from listed below free programs:

3. Usage of data transfer program curl

Curl - is a very useful free utility to transfer data files through Internet. It supports following data transfer protocols: FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet и TFTP.

You can use curl commands in xMarkup's scripts. For example:

  rc := system("curl --output c:\\tmp\\v90.tgz ftp://ftp.cs.arizona.edu/icon/historic/v90.tgz")
  if isnull(rc) then stop("can't run curl")
  write("rc=",rc)

To use curl you should at first add folder %curl%\bin to PATH environment variable.

© Сергей Логичев, 2016