Open main menu

Changes

2,759 bytes added ,  00:24, 20 February 2023
Created page with "= Introduction = ''CudaText'' is a freeware open-source text editor that comes for Windows, Linux, MacOS and other Unix(-like) operating systems. It can be extended by lexers..."
= Introduction =

''CudaText'' is a freeware open-source text editor that comes for Windows, Linux, MacOS and other Unix(-like) operating systems. It can be extended by lexers, plugins, etc. through its own Addon Manager and by user additions. It is written in Object Pascal and depends on the Python engine which is included in the Windows version or which can be added manually for others.

= Homepage, Download, Installation, Start =

You can find the homepage on GitHub here: [https://cudatext.github.io https://cudatext.github.io]

To go directly to the download page on SourceForge visit: [https://sourceforge.net/projects/cudatext/files/release/ https://sourceforge.net/projects/cudatext]

To install simply extract the content of the downloaded file to a folder and location of your choice.

Afterwards use <code>cudatext.exe</code> from the extracted main directory to start CudaText.

= Integrating ''ConTeXt'' =

Within CudaText use the Menu Bar to navigate to <code>Plugins -> Addons Manager -> Install...</code>

Use the search field of the pop-up window to find and install <code>lexer: LaTeX</code> by double-clicking, then confirming and afterwards closing the notification window. This add-on is of the type lexer and is used for syntax highlighting of LaTeX files. But it works for TeX or ConTeXt files as well.

The same way find and install <code>plugin: Runner</code>. This add-on is used to run commands from within CudaText and is necessary to run ConTeXt PDF build commands using the editor.

After installing the two add-ons close CudaText.

Within the CudaText main folder navigate to <code>data \ buildsystems</code> and create a text file. Rename it to <code>ConTeXt.sublime-build</code> and make sure the file suffix to be <code>*.sublime-build</code> which is the standard for build commands for both Sublime Text editor as well as CudaText.

Open the blank <code>ConTeXt.sublime-build</code> and save it after adding the following lines:

{
"file_patterns": ["*.tex"],
"working_dir": "$file_path",
"shell_cmd": "context --autopdf \"${file}\"",
}

Now the basic setup is finished and CudaText can be used to highlight and build ConTeXt files. For the latter open a ConTeXt source file or create a new one with CudaText. When finished use the Menu Bar to navigate to <code>Plugins -> Runner -> Build</code>. Now the console should show ConTeXt output while the finished PDF should pop up within your default PDF viewer, according to the build command defined within <code>ConTeXt.sublime-build</code>.

= Further reading =

The quide above shows the very basic steps get CudaText up and running with ConTeXt. Further content that helps getting the most out of this combination is planned to be added in the future.
194

edits