Notepad++ VDF Language Plugins: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Unicodifying, replaced: See Also → See also, [[Image: → [[File: (2))
(→‎External links: Adding forked version which has dark and light theme)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{cleanup}}
[[File:Npplng qc.png|thumb|300px|[[Qc|QC]] highlighting.]]
[[File:Npplng qc.png|thumb|300px|[[Qc|QC]] highlighting.]]
[[File:Npp qc light and dark.jpg|thumb|300px|[[Qc|QC]] highlighting. In light and dark theme]]
[[File:Npplng talker.png|300px|thumb|[[Response System|Response rules]] 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:
{{npp|4}} is a free source code editor that supports custom text highlighting. Highlighting rules are available for many {{Valve|4}} languages.  
This editor is useful for editing scripts and programming.


#'''[https://github.com/ReverendV92/NotepadPP-VDF-Languages Download the languages on GitHub here]'''
== Support ==
#Extract the XML files to <code>%appdata%/Notepad++/userdefinelangs/</code>
*[[:Category:File formats|file format]]s and [[:Category:Files|file]]s
** [[VDF]] (.vdf)
** [[KeyValues2]] (.dmx, but can be used for any other keyvalue2 file, such as pcf)
** [[Response System|Response rules]] (.talker)
** [[Soundscripts]] (.soundscript & .txt, manual language picking required)
** [[Material|Materials]] (.vmt)
** [[Actbusy]] (.vdf)
** [[Soundscapes]] (.soundscape & .txt, manual language picking required)
** [[QC]] (.qc, .qci, .qcx)
** [[Studiomdl Data|SMD]] (.smd, .vta)
** [[Weapon script]] (.txt, manual language picking required)
** [[FGD]] (.fgd)
** [[Detail props|VBSP]] (.vbsp)
** [[cfg|Config]] (.cfg)
** [[VGUI|Vgui Resource]] (.res)
** [[L4D2_Vscripts|L4D2 Vscript]] (.nut)
** L4D2 Weapon Scripts (.txt, manual language picking required)
**


<code>%appdata%</code> should automatically resolve to a full path.
== Limitations ==
{{warning|{{npp}} detects languages based on file extensions, but in several cases the established one is simply {{code|.txt}}.}}
{{note|v6.8.4 (released on 16 Oct 2015) implemented the auto-detect language feature (at least for a subset of languages)}}
{{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.}}


== Supported [[:Category:File formats|file format]]s and [[:Category:Files|file]]s ==
=== Installation Highlighting rules ===
[[File:Npplng talker.png|300px|thumb|[[Response System|Response rules]] highlighting.]]
To install them:


# [[VDF]] (.vdf)
#'''[https://github.com/Mrfunreal/VDF-Lanugages-for-NotepadPlusPlus Download the languages on GitHub here]'''
# [[KeyValues2]] (No default extension due to very large potential filesize)
#Extract the XML files to <code>%appdata%/Notepad++/userdefinelangs/</code>
# [[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 ==
<code>%appdata%</code> should automatically resolve to a full path.
{{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===
===Filenames===
You can see the custom extensions which had been set up for this purpose in the list above.
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.
If you want to set a language manually in Notepad++, use the <code>Language</code> menu.


== Compiling QC model scripts ==
== 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].
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].


Line 49: Line 55:


== See also ==
== See also ==
* [[Highlighting and Compiling QCs with ConTEXT]]


*[http://steamreview.org/external/vdc/npp-vdf.zip Legacy Version]
== External links ==
*[[Highlighting and Compiling QCs with ConTEXT]]
* [https://drive.google.com/file/d/1lw5Mam00jCg7s4dFARdxRGMXBAU4m5WO Extended version of the QC language with support for Dark Mode themes]
* {{GitHub|N0ine/VDF-Lanugages-for-NotepadPlusPlus|Full dark theme version and light theme version (Forked)}}
* [http://steamreview.org/external/vdc/npp-vdf.zip Legacy Version]
* [http://sourceforge.net/project/showfiles.php?group_id=189927&package_id=265782 Gmod Lua Highlighter plugin]
* [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++]
* [https://mrkleiner.github.io/npp_vmt/ Improved/Extended vmt syntax highlighter for Notepad++]


== References ==
== References ==
# [https://notepad-plus-plus.org/downloads/v6.8.4.html Official Download Mirror]
# [https://notepad-plus-plus.org/downloads/v8.8.1 Official Download Mirror]
 
[[Category:Programming]]
[[Category:Scripting]]
[[Category:Third Party Tools]]
{{sdktools|0}}
{{sdktools|0}}
[[Category:Third Party Tools]]
[[Category:Programming]]<!-- How this is relevant here? -->

Latest revision as of 09:32, 29 June 2025

QC highlighting.
QC highlighting. In light and dark theme
Response rules highlighting.

Notepad++ Notepad++ is a free source code editor that supports custom text highlighting. Highlighting rules are available for many Valve Valve languages. This editor is useful for editing scripts and programming.

Support

Limitations

Warning.pngWarning:Notepad++ detects languages based on file extensions, but in several cases the established one is simply .txt.
Note.pngNote:v6.8.4 (released on 16 Oct 2015) implemented the auto-detect language feature (at least for a subset of languages)
Note.pngFix: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.

Installation Highlighting rules

To install them:

  1. Download the languages on GitHub here
  2. Extract the XML files to %appdata%/Notepad++/userdefinelangs/

%appdata% should automatically resolve to a full path.

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.

Tip.pngTip:Use Ctrl+F6 to execute the previous command again.

See also

External links

References

  1. Official Download Mirror