Category:Wren: Difference between revisions

Updated blurb re syntax highlighting.
m (Updated page.)
(Updated blurb re syntax highlighting.)
Line 16:
The latest version 0.4.0 is available as a pre-built standalone executable for 64-bit Linux, MacOS and Windows and can be downloaded from [https://github.com/wren-lang/wren-cli/releases here].
 
Following the migration to Miraheze and then WikiTide, RC now uses [https://pygments.org Pygments] (rather than GeSHi) for syntax highlighting and I have written a lexer for Wren which iscan includednow inbe versionspecified 2.14.0instead of 'ecmascipt' which was used previously. However,The atlatter thewas timeonly ofsupported writingby (Augustvirtue 2023),of RCa isGeSHi stillmapping usingto versionthe 2.11.2'javascript' andlexer but it isappears notthat knownthis whenmapping thisno longer works and so all tasks/modules will need to be updated to use the latest'wren' version.lexer in due course.
 
In the meantime 'ecmascript', which we currently use for the 'lang' attribute, is supported by virtue of a GeSHi mapping to the 'javascript' lexer and highlights all Wren 0.4.0 keywords except: ''is'', ''construct'' and ''foreign''. I suggest we continue to use that until the Wren lexer is available after which we can use the latter for new tasks and when updating existing tasks. A major effort would be needed to update all existing tasks straightaway given that there are more than 1,600 of them as at August 2023.
 
As a language mainly designed for embedding, Wren's standard library is (of necessity) quite small and I have therefore decided to create some additional modules to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily. The ones written so far are listed below:
9,476

edits