Notepad++ VDF Language Plugins: Difference between revisions
(Lxm6 moved page Notepad++ VDF Language Plugins to Notepad++/VDF Language Plugins) Tag: New redirect |
m (Removed redirect to Notepad++/VDF Language Plugins) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | [[Image:Npplng qc.png|thumb|300px|[[Qc|QC]] highlighting.]] | ||
{{npp|4}} is a free source code editor that supports custom text highlighting. Highlighting rules are available for many Valve languages. To install them: | |||
#'''[https://github.com/ReverendV92/NotepadPP-VDF-Languages Download the languages on GitHub here]''' | |||
#Extract the XML files to <code>%appdata%/Notepad++/userdefinelangs/</code> | |||
<code>%appdata%</code> should automatically resolve to a full path. | |||
== Supported [[:Category:File formats|file format]]s and [[:Category:Files|file]]s == | |||
[[Image:Npplng talker.png|300px|thumb|[[Response System|Response rules]] highlighting.]] | |||
# [[VDF]] (.vdf) | |||
# [[KeyValues2]] (No default extension due to very large potential filesize) | |||
# [[Response System|Response rules]] (.talker) | |||
# [[Soundscripts]] (.soundscript) | |||
# [[Material|Materials]] (.vmt) | |||
# [[Actbusy]] (.vdf) | |||
# [[Soundscapes]] (.soundscape) | |||
# [[QC]] (.qc, .qci) | |||
# [[Studiomdl Data|SMD]] (.smd, .vta) | |||
# [[Weapon script]] (No appropriate extension) | |||
# [[FGD]] (.fgd) | |||
# [[Detail props|VBSP]] (.vbsp) | |||
== Limitations == | |||
{{warning|N++ detects languages based on file extensions,<!--<ref name="rn684" />--> but in several cases the established one is simply <code>.txt</code>.}} | |||
{{note|v6.8.4 (released on 16 Oct 2015) implemented the auto-detect language feature (at least for a subset of languages)<!--<ref name="rn684" />-->...}} | |||
{{fix|Rename the files in these cases: so long as the correct name is in the manifests, it doesn't matter what your soundscripts, response rules scripts, or soundscapes are called.}} | |||
===Filenames=== | |||
You can see the custom extensions which had been set up for this purpose in the list above. | |||
If you want to set a language manually in Notepad++, use the <code>Language</code> menu. | |||
== Compiling QC model scripts == | |||
You can compile [[QC]]s directly from Notepad++ with the '''NppExec''' plugin. Install it either from ''Plugins > Plugin Manager'' or by [http://sourceforge.net/projects/npp-plugins/files/NppExec/ downloading directly from SourceForge]. | |||
With NppExec installed, press {{key|F6}} and enter the following command. Change the path to [[studiomdl]] to match your system and your target [[:Category:Engine branches|engine branch]]: | |||
"C:\Program Files (x86)\Steam\steamapps\common\alien swarm\bin\studiomdl.exe" -nop4 -r "$(FULL_CURRENT_PATH)" | |||
Press OK to compile. | |||
{{tip|Use {{key|Ctrl|F6}} to execute the previous command again.}} | |||
== See Also == | |||
*[http://steamreview.org/external/vdc/npp-vdf.zip Legacy Version] | |||
*[[Highlighting and Compiling QCs with ConTEXT]] | |||
* [http://sourceforge.net/project/showfiles.php?group_id=189927&package_id=265782 Gmod Lua Highlighter plugin] | |||
* [https://mrkleiner.github.io/npp_vmt/ Improved/Extended vmt syntax highlighter for Notepad++] | |||
== References == | |||
[https://notepad-plus-plus.org/downloads/v6.8.4.html https://notepad-plus-plus.org/downloads/v6.8.4.html] | |||
{{sdktools|0}} | |||
[[Category:Third Party Tools]] | |||
[[Category:Programming]]<!-- How this is relevant here? --> |
Revision as of 09:18, 17 November 2023

Notepad++ is a free source code editor that supports custom text highlighting. Highlighting rules are available for many Valve languages. To install them:
- Download the languages on GitHub here
- Extract the XML files to
%appdata%/Notepad++/userdefinelangs/
%appdata%
should automatically resolve to a full path.
Supported file formats and files

- VDF (.vdf)
- KeyValues2 (No default extension due to very large potential filesize)
- Response rules (.talker)
- Soundscripts (.soundscript)
- Materials (.vmt)
- Actbusy (.vdf)
- Soundscapes (.soundscape)
- QC (.qc, .qci)
- SMD (.smd, .vta)
- Weapon script (No appropriate extension)
- FGD (.fgd)
- VBSP (.vbsp)
Limitations

.txt
.

Filenames
You can see the custom extensions which had been set up for this purpose in the list above.
If you want to set a language manually in Notepad++, use the Language
menu.
Compiling QC model scripts
You can compile QCs directly from Notepad++ with the NppExec plugin. Install it either from Plugins > Plugin Manager or by downloading directly from SourceForge.
With NppExec installed, press F6 and enter the following command. Change the path to studiomdl to match your system and your target engine branch:
"C:\Program Files (x86)\Steam\steamapps\common\alien swarm\bin\studiomdl.exe" -nop4 -r "$(FULL_CURRENT_PATH)"
Press OK to compile.

See Also
- Legacy Version
- Highlighting and Compiling QCs with ConTEXT
- Gmod Lua Highlighter plugin
- Improved/Extended vmt syntax highlighter for Notepad++
References
https://notepad-plus-plus.org/downloads/v6.8.4.html
|