[MGNLUI-2406] BasicTextCodeField doesn't support freemarker syntax highlighting Created: 15/Nov/13  Updated: 22/Sep/14  Resolved: 22/Sep/14

Status: Closed
Project: Magnolia UI
Component/s: forms
Affects Version/s: 5.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Federico Grilli Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MGNLINTEMPL-48 FTL code in the editor should have Sy... Closed
duplicate
duplicates MGNLUI-3164 Enable freemarker highlighting in cod... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The Vaadin's Ace Editor addon doesn't come with freemarker syntax highliting support out-of-the box, so in that case defaults to plain text. After a little investigation I found out that adding support for a new language involves rebuilding ace editor javascript but that is not a straightforward process as far as I could see and would take some time. (See https://github.com/heygrady/ace-mode-freemarker)



 Comments   
Comment by Christopher Zimmermann [ 04/Dec/13 ]

Perhaps we could get Antti Nieminen (https://vaadin.com/directory#addon/aceeditor) to add the ftl support to his Ace editor component.

Comment by Christopher Zimmermann [ 04/Dec/13 ]

Interesting that the ace editor demo does support FTL: http://ace.c9.io/build/kitchen-sink.html
Set "mode" dropdown to freemarker.

Generated at Mon Feb 12 08:56:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.