Loading...
 
Features / Usability

Features / Usability


Re: {code} colour options

posts: 1630 Canada

Hi!

We moved from Geshi to CodeMirror because CodeMirror is realtime (so you can have coloring as you type) and the license permits us bundle in Tiki, instead of forcing end user to install.

Unfortunately, PowerShell is not by default in CM: http://codemirror.net/mode/index.html

I just tried this on 9.x:
http://demo.tiki.org/9x/PowerShell

I added the content of https://github.com/VapidWorx/powershell-cm-mode to lib/codemirror/mode/powershell

Seems to work. Can you try different syntax? Password is indicated on demo.tiki.org

If it works, next steps would be to get the folks behind https://github.com/VapidWorx/powershell-cm-mode to share the code to https://github.com/marijnh/CodeMirror/tree/master/mode and, then, it will be by default in Tiki.

In the mean time, you can fiddle with your local copy.

Best regards,

M ;-)

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting