Adding Coldfusion10 dictionary to CFEclipse Plugin - coldfusion

I downloaded CfEclipse plugin (http://www.cfeclipse.org/update) for Eclipse 4.2.2. I can't see the support for Coldfusion 10. How to add Coldfusion 10 tags/functions?

Use the CFML 10 and CFML 11 dictionary from a CFBuilder3 install, which uses the same dictionary format. Just take the dictionary from CFBuilder3 and drop it into the CFBuilder2 dictionary folder and add the following to the "dictionaryconfig.xml" file:
<version key="ColdFusion11" label="ColdFusion 11">
<grammar location="cf11.xml" />
</version>
<version key="ColdFusion10" label="ColdFusion 10">
<grammar location="cf10.xml" />
</version>
The dictionary files are located in the "CFBuilder" plugins directory and have the word "dictionary" in the folder nameā€”for example:
E:\cfbuilder\plugins\com.adobe.ide.coldfusion.dictionary_2.0.1.282422\dictionary

Related

Next.js + Production build + Webp format images

I have a few images that are already in .webp format.
/public/images/Image.webp
and they work on my dev local environment but when I build and view the static site the image fails to show.
<picture>
<source
srcset="/images/architect/Header-Image.webp"
type="image/webp"
/>
<img srcset="/images/architect/Header-Image.webp" />
</picture>
Image of file location:
/public/
images/
architect/

XML formatting regex merge lines and keep indentation

I've got xml files that I want to apply universal formatting to using regex.
Basically what I want is to have these 2 lines on 1 line.
]]>
</query>
AND
have it with the same indentation as the opening tag.
So this example (or any variation to it)
<search>
<query><![CDATA[
testline1
]]>
</query>
</search>
Should become this
<search>
<query><![CDATA[
testline1
]]></query>
</search>
See my example here on regex101.com
This is how you would do it with python:
from lxml import etree
test = """your xml above"""
doc = etree.XML(test)
target = doc.xpath('//query')[0]
target.text = etree.CDATA("".join(target.text.rsplit('\n',1)))
print(etree.tostring(doc).decode())
Output:
<search>
<query><![CDATA[
testline1
]]></query>
</search>

Getting error in ANT regex "Couldn't rename temporary file C:\Users\username\AppData\Local\Temp\replace7877977241325466040.txt"

In ANT, I am trying to replace a file's property using regex by using the below script:
<property file="MyFilePath/MyFileName1.properties" />
<replaceregexp file="MyFilePath/MyFileName2.properties"
match="#{ComparingProperties}=(.*)"
replace="#{ComparingProperties}=${#{ComparingProperties}}" />
Read a content from MyFileName1 and replacing the property in MyFileName2.
While execution I am facing issue as "Couldn't rename temporary file C:\Users\username\AppData\Local\Temp\replace7877977241325466040.txt"
If I remove this regex and try, the build goes fine. In many of my scripts I used replaceregex, but this is the place I get this error newly. Any inputs would be really helpful. Thanks !

Item Template for VSTemplate file

I'm trying to create VS Item Template that will allow adding .vstemplate files to project.
This is how my vsTemplate.vstemplate file currently looks:
<?xml version="1.0" encoding="utf-8"?>
<VSTemplate
xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010"
xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"
Version="3.0.0"
Type="Item">
<TemplateData>
<Name>VS Item Template</Name>
<Icon>vsTemplate.ico</Icon>
<Description>VS Item Template Files</Description>
<DefaultName>vsTemplate</DefaultName>
<ProjectType>CSharp</ProjectType>
<TemplateID>Microsoft.CSharp.Class</TemplateID>
<CreateInPlace>true</CreateInPlace>
</TemplateData>
<TemplateContent>
<ProjectItem TargetFileName="Template\$fileinputname$.vstemplate" ReplaceParameters="true">vsTemplate.data</ProjectItem>
<ProjectItem TargetFileName="Template\$fileinputname$.$fileinputextension$.data">vsTemplate.empty.data</ProjectItem>
<ProjectItem TargetFileName="Template\$fileinputname$.ico">vsTemplate.ico.data</ProjectItem>
</TemplateContent>
</VSTemplate>
When I am trying to use it (inside vs experimental instance), I am getting this error:
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
How I understand the problem, I need to specify custom build action for .vstemplate file inside .csproj file, something like this:
<VSTemplate Include"..."/>
But I don't know how to do that.
What I'am already tried:
set ItemType="VSTemplate" for vstemplate ProjectItem
use custom Wizard class
add /log option inside project command line argument window (it does not provide any additional information)

ColdFusion list a particular type of files within folders?

I have a list of folders from a directory. All of the folders in this directory contain pdf files. There are about 20 folders. Is it possible to get the names of the pdf files, in all folders, without having to go through each directory (folder)?
<cfdirectory action="list"
directory="C:\wwwroot\WebServer\testing\uploads\all_folders"
recurse="false"
name="myList">
<cfdump var=#myList#>
Try using filter="*.pdf" attribute and type="file".
<cfdirectory
directory="C:\wwwroot\WebServer\testing\uploads\all_folders"
action="list"
recurse="yes"
type="file"
filter="*.pdf"
name="myList"
>
<cfdump var=#myList#>