[JBoss JIRA] (JBIDE-21819) Freemarker syntax highlighting issues with square brackets syntax
by Kari Aliranta (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21819?page=com.atlassian.jira.plugi... ]
Kari Aliranta updated JBIDE-21819:
----------------------------------
Description:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted are the ${root} and ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
was:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
> Freemarker syntax highlighting issues with square brackets syntax
> -----------------------------------------------------------------
>
> Key: JBIDE-21819
> URL: https://issues.jboss.org/browse/JBIDE-21819
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.3.0.Final
> Reporter: Kari Aliranta
>
> Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
> 1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
> 2. It is stopped by ${somevariable} tags that are NOT within brackets
> h2. Example
> This is best exemplified by following beginning of an actual ftl file:
> (*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
> {code}
> *1*[#ftl attributes={"layout":"defaultLayout"} /]
> [#if cmpsContainer??]
> [#if cmpsContainer.getComponent('protocols')??]
> [#assign protocols = cmpsContainer.getComponent('protocols') /]
> [/#if]
> [/#if]
> *2*
> <script>head.load("${root}/lib/redbox.js");</script>
> *3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
> {code}
> The following happens:
> - When opening the file, the only thing highlighted are the ${root} and ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
> - You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
> - You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
> - Note that the highlighting does NOT stop at ${defaultPlaceholder}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21819) Freemarker syntax highlighting issues with square brackets syntax
by Kari Aliranta (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21819?page=com.atlassian.jira.plugi... ]
Kari Aliranta updated JBIDE-21819:
----------------------------------
Description:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only things highlighted are the ${root} and ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
was:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted are the ${root} and ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
> Freemarker syntax highlighting issues with square brackets syntax
> -----------------------------------------------------------------
>
> Key: JBIDE-21819
> URL: https://issues.jboss.org/browse/JBIDE-21819
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.3.0.Final
> Reporter: Kari Aliranta
>
> Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
> 1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
> 2. It is stopped by ${somevariable} tags that are NOT within brackets
> h2. Example
> This is best exemplified by following beginning of an actual ftl file:
> (*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
> {code}
> *1*[#ftl attributes={"layout":"defaultLayout"} /]
> [#if cmpsContainer??]
> [#if cmpsContainer.getComponent('protocols')??]
> [#assign protocols = cmpsContainer.getComponent('protocols') /]
> [/#if]
> [/#if]
> *2*
> <script>head.load("${root}/lib/redbox.js");</script>
> *3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
> {code}
> The following happens:
> - When opening the file, the only things highlighted are the ${root} and ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
> - You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
> - You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
> - Note that the highlighting does NOT stop at ${defaultPlaceholder}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBDS-3662) CDK Launch config has broken PATH env variable value set
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBDS-3662?page=com.atlassian.jira.plugin.... ]
Rob Stryker commented on JBDS-3662:
-----------------------------------
My terminal path on windows is as follows:
C:\Users\Administrator>echo %PATH%
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:
\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\S
ystem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Tortoi
seSVN\bin;C:\Windows\System32\;C:\apps\apache\maven\apache-maven-3.2.2\bin;C:\Pr
ogram Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Sk
ype\Phone\;C:\HashiCorp\Vagrant\bin;c:\DeveloperPlatform\vagrant\bin;c:\Develope
rPlatform\cygwin\bin;c:\DeveloperPlatform\cdk\bin;c:\DeveloperPlatform\vagrant\b
in;c:\DeveloperPlatform\vagrant\mingw\bin;;C:\Program Files\Docker Toolbox;C:\cy
gwin64\bin;C:\Program Files (x86)\PuTTY
In eclipse, in the launch config, the UI on the Environment tab will show me up to 260 characters, but if I right-click on the entry, I see the complete path with no apparent errors.
In eclipse, I get the following path:
C:/Program Files/Java/jre1.8.0_73/bin/server;C:/Program Files/Java/jre1.8.0_73/bin;C:/Program Files/Java/jre1.8.0_73/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Windows\System32\;C:\apps\apache\maven\apache-maven-3.2.2\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone\;C:\HashiCorp\Vagrant\bin;c:\DeveloperPlatform\vagrant\bin;c:\DeveloperPlatform\cygwin\bin;c:\DeveloperPlatform\cdk\bin;c:\DeveloperPlatform\vagrant\bin;c:\DeveloperPlatform\vagrant\mingw\bin;;C:\Program Files\Docker Toolbox;C:\cygwin64\bin;C:\Program Files (x86)\PuTTY;C:\apps\eclipse\mars.1\eclipse-java-mars-1-win32-x86_64\eclipse
I'm definitely not able to replicate the small path you have in your UI.
> CDK Launch config has broken PATH env variable value set
> --------------------------------------------------------
>
> Key: JBDS-3662
> URL: https://issues.jboss.org/browse/JBDS-3662
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Components: cdk, server
> Affects Versions: 9.1.0.Beta2
> Reporter: Denis Golovin
> Assignee: Rob Stryker
> Priority: Blocker
> Labels: havoc
> Fix For: 9.1.0.CR1
>
> Attachments: path.png
>
>
> Why it duplicates what is already set on installer side? Installer configures everything that is required for vagrant .up to work except SUB_USERNAME and SUB_PASSWORD.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21819) Freemarker syntax highlighting issues with square brackets syntax
by Kari Aliranta (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21819?page=com.atlassian.jira.plugi... ]
Kari Aliranta updated JBIDE-21819:
----------------------------------
Description:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
was:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. $ {somevariable})
2. It is stopped by $ {somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
> Freemarker syntax highlighting issues with square brackets syntax
> -----------------------------------------------------------------
>
> Key: JBIDE-21819
> URL: https://issues.jboss.org/browse/JBIDE-21819
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.3.0.Final
> Reporter: Kari Aliranta
>
> Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
> 1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
> 2. It is stopped by ${somevariable} tags that are NOT within brackets
> h2. Example
> This is best exemplified by following beginning of an actual ftl file:
> (*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
> {code}
> *1*[#ftl attributes={"layout":"defaultLayout"} /]
> [#if cmpsContainer??]
> [#if cmpsContainer.getComponent('protocols')??]
> [#assign protocols = cmpsContainer.getComponent('protocols') /]
> [/#if]
> [/#if]
> *2*
> <script>head.load("${root}/lib/redbox.js");</script>
> *3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
> {code}
> The following happens:
> - When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
> - You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
> - You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
> - Note that the highlighting does NOT stop at ${defaultPlaceholder}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21819) Freemarker syntax highlighting issues with square brackets syntax
by Kari Aliranta (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21819?page=com.atlassian.jira.plugi... ]
Kari Aliranta updated JBIDE-21819:
----------------------------------
Description:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. $ {somevariable})
2. It is stopped by $ {somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
was:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
> Freemarker syntax highlighting issues with square brackets syntax
> -----------------------------------------------------------------
>
> Key: JBIDE-21819
> URL: https://issues.jboss.org/browse/JBIDE-21819
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.3.0.Final
> Reporter: Kari Aliranta
>
> Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
> 1. It needs user input to engage (except for interpolation tags, i.e. $ {somevariable})
> 2. It is stopped by $ {somevariable} tags that are NOT within brackets
> h2. Example
> This is best exemplified by following beginning of an actual ftl file:
> (*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
> {code}
> *1*[#ftl attributes={"layout":"defaultLayout"} /]
> [#if cmpsContainer??]
> [#if cmpsContainer.getComponent('protocols')??]
> [#assign protocols = cmpsContainer.getComponent('protocols') /]
> [/#if]
> [/#if]
> *2*
> <script>head.load("${root}/lib/redbox.js");</script>
> *3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
> {code}
> The following happens:
> - When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
> - You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
> - You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
> - Note that the highlighting does NOT stop at ${defaultPlaceholder}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (JBIDE-21819) Freemarker syntax highlighting issues with square brackets syntax
by Kari Aliranta (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21819?page=com.atlassian.jira.plugi... ]
Kari Aliranta updated JBIDE-21819:
----------------------------------
Description:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
was:
Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
1. It needs user input to engage (except for interpolation tags, i.e. {code}${somevariable} {code})
2. It is stopped by ${somevariable} tags that are NOT within brackets
h2. Example
This is best exemplified by following beginning of an actual ftl file:
(*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
{code}
*1*[#ftl attributes={"layout":"defaultLayout"} /]
[#if cmpsContainer??]
[#if cmpsContainer.getComponent('protocols')??]
[#assign protocols = cmpsContainer.getComponent('protocols') /]
[/#if]
[/#if]
*2*
<script>head.load("${root}/lib/redbox.js");</script>
*3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
{code}
The following happens:
- When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
- You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
- You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
- Note that the highlighting does NOT stop at ${defaultPlaceholder}
> Freemarker syntax highlighting issues with square brackets syntax
> -----------------------------------------------------------------
>
> Key: JBIDE-21819
> URL: https://issues.jboss.org/browse/JBIDE-21819
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.3.0.Final
> Reporter: Kari Aliranta
>
> Ftl file (square syntax) highlighting seems to have two issues in the latest final, i.e.:
> 1. It needs user input to engage (except for interpolation tags, i.e. ${somevariable})
> 2. It is stopped by ${somevariable} tags that are NOT within brackets
> h2. Example
> This is best exemplified by following beginning of an actual ftl file:
> (*1*, *2* etc. with stars are my markings for referencing, and are NOT in actual FTL file)
> {code}
> *1*[#ftl attributes={"layout":"defaultLayout"} /]
> [#if cmpsContainer??]
> [#if cmpsContainer.getComponent('protocols')??]
> [#assign protocols = cmpsContainer.getComponent('protocols') /]
> [/#if]
> [/#if]
> *2*
> <script>head.load("${root}/lib/redbox.js");</script>
> *3*[(a)alerts.success placeholder="${defaultPlaceholder}" class="fade alert-fixed"]${uitags.assignmentRemoved}*4*[/(a)alerts.success]
> {code}
> The following happens:
> - When opening the file, the only thing highlighted is ${uitags.assignmentRemoved} (considered "interpolation" in Freemarker syntax highlighting configuration)
> - You need to write anything at *1* to engage highlighting other syntax, in which case the highlighting runs up until *2*
> - You then need to write anything at *3* to continue highlighting, in which case the hightlighting stops at *4*, and you then need to write anything at *4* to make it continue
> - Note that the highlighting does NOT stop at ${defaultPlaceholder}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month