Jump to content

Notepad++ language settings for VS-JSON files [download]


AlphaRay

Recommended Posts

For better visibility and debugging (see samples below) i created an own overlay for json files for Notepad++ based on Vintage Story keywords.
Some keywords are sepcially colored like "game:"-Items and some of mod items   (if someone has a list of mod IDs > please send these to me so i can add these so all mod IDs are highlighted correctly)


Download
File Date:  2021-03-20
npp_vintagestory_json.xml    

News
2021-03-20
    More keywords added.  Actually over 450!
                        If already using:  delete the existing user language "vintagestory" first before importing the new file.  After import restart Notepage++.

npp_vintagestory_json_2021-03-21.thumb.png.52b0c2e63f41d8a2574ab05adde11dee.png
2021-03-13    Added additional Mod ID's (22 now) + several keywords (especially from shape json files)

Actual implemented Mod-ID's
acorns arplants betterstairs carrycapacity expandedfoods extrachests farmlife game helvehammerext hudclock linenbackpack medievalexpansion morerecipes primitivesurvival survivalcats usefulstuff weaponpacka wildfarming workbenchexpansion xeffects xlib xskills

How to install
- Menu "Language"
- "User defined language"  >> "Define your language"
- Click on "Import..." and select the downloaded xaml-file
- restart Notepad++
- now "vintagestory" is added to the Language-menu at the bottom
- Thats all  :)    Up now every json file will be automatically formatted by these settings
 

Preview

compostbin.json from Farmlife-Mod   -  On the left the default JSON language settings of Notepad++ - on the right the new one

NPP_VS_JSON_preview1_compostbin_Farmlife.thumb.png.33129ba4f9f0c831399e3c304100fa6d.png

 

deadfall.json from PrimitiveSurvival-Mod.   E.g. here are "game:" strings highlighted in red-yellow - Mod names are highlighted in blue-cyan

NPP_VS_JSON_preview2_deadfall_PrimSurv.thumb.png.0d4a7d1543992866e6a728c5841b05ae.png

 

 

Edited by AlphaRay
  • Like 3
  • Cookie time 1
  • Amazing! 1
  • Mind=blown 1
  • Thanks 1
Link to comment
Share on other sites

  • AlphaRay changed the title to Notepad++ language settings for VS-JSON files [download]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.