configure file extensions in PyScripter - zpt

How do I configure the list of file extensions for syntax highlighting in PyScripter?
In particular I like to include Zope Page Template files (ZPT) with extension .pt to the list of HTML files to show proper syntax highlighting.

Finally got it:
You need to modify the file filter for HTML files to include the .pt
extension in Tools > Options > IDE Options.

Related

doxygen file customTag

I want to include a custom doxygen tag refering a license.md file in my workspace root folder. I am using Visual Studio Code Editor and the doxygen extension.
I know that I can write in the options something like:
"doxdocgen.file.customTag": [
"#license License /* {licensePath} */"
]
I want just to link the licensePath to my file, or more generally, how can I refer any file into those templates?
Any suggestion? Thanks in advice

Syntax highlighting of unsupported language in WebStorm with TextMate bundle

The usual answer to this question is, "download and add a suitable TextMate bundle." I have done that.
I'm working in WebStorm on a React project using GraphQL. It has a lot of .vtl (Velocity Template Language) files that do not have syntax highlighting. I found out that I can add a TextMate bundle for VTL in order to get highlighting. I got this bundle from https://github.com/textmate/java-velocity.tmbundle. After adding it to WebStorm, there still isn't an appropriate file type, and .vtl files still don't have syntax highlighting.
So, I tried to create a new custom file type, manually supplying lists of keywords to highlight, which make the code slightly more readable. However, every .vtl file is now entirely marked with squiggly red, saying, "Unexpected tokens." I just wanted keyword highlighting, not incorrect assumptions about grammar.
Is this a problem with WebStorm, the bundle, or me? How can I get some basic syntax highlighting specifically for .vtl files?
Note that the TextMate plugin is installed.
The bundle only provides highlighting for *.vm files. Please check if the issue persists if you open java-velocity.tmbundle\Syntaxes\Velocity.tmLanguage file in some text editor and add vtl to the list of supported extensions:
<key>fileTypes</key>
<array>
<string>vm</string>
<string>vtl</string>
</array>
and re-start the IDE?
Note that you need to remove your custom file type to get the extension recognized

Adding folder pointers to default .sublime-build files (Sublime Text 3, c++)

I am looking for a straight-forward way to add folder pointers in Sublime Text 3 when I am using it's built-in C++ compiler, C++ Single File Build System. I have written custom .sublime-build files before, but I also cannot find the default file C++ Single File .sublime-build file -- if I could do that, I could simply add an "-I /usr/..." to include additional folders.
As a solution, I am looking for:
Use the same .sublime-build that is used in the default C++ Single File Build System, while
Adding additional folders to point to. These additional folders would include header files (ex. armadillo.h)
An easy way to do this is use the PackageControl under Preferences, and install PackageResourceViewer. Once installed, you can use Ctrl+Shift+P > type prv > click PackageResourceViewer: Open Resource > C++ > C++ Single File.sublime-build. Copy this code into a new .sublime-build file, and add the additional folder(s) using `"-I C:/path/to/folder"

How to get tpl files highlighted in pycharm?

What file association will get the correct highlighting for *.tpl files in Pycharm? I have tried HTML and PHP, but neither seem to get it 100%.
I am using bottle and python 2.7 on a Windows machine.
Just setting it like the picture:
Choose Editor -> File Types -> Recognized File Types -> HTML
Add a Registered Patterns: *.tpl
Your question will be solved.

best way to generate options in VisualStudio Project files

I am generating VisualStudio C++ project files from a build system.
The compiler options in the XML for the project file are in a different format from the command line options specified for the compiler.
I need to get from command line options for cl.exe to the project file options for the VCCLCompilerTool.
1 - Is anyone aware of an open source script designed to do exactly this?
2 - If one removes all the options from the XML and puts all the command line options into the "AdditionalOptions" attribute, will it filter these or is everything put in there added to the command line verbatim ? will the "AdditionalOptions" overide the defaults if there are options present from in the UI ? ( I havn't written a proxy cl.exe to test what it actually gets in this case :)
Thanks!!!!
One solution could be to use Property Sheets (vsprops). You could generate a vsprops file for every option you intend to use (this is done from the property sheet editor in visual studio). Then in your generated project file reference each property sheet that contains the option(s) you intend to use in the InheritedPropertySheets seciton. We do something similar by grouping various options together into related propery sheets. For example we use the following sets of property sheets:
ARMASM.rules
C++ Standards Compliance.vsprops
Debug Program Database.vsprops
Debug.vsprops
Multi-Threaded Debug Libraries.vsprops
Multi-Threaded Release Libraries.vsprops
Optimize for Size.vsprops
Platform Directory.vsprops
Release.vsprops
Static Library.vsprops
Strictest Warnings.vsprops
Win32.vsprops
WinCE.vsprops