Skip to content

Instantly share code, notes, and snippets.

@DiegoRibeiro
DiegoRibeiro / tfs.xml
Last active October 3, 2020 19:53
Xml for notepad++ for TFS autocompletion
<?xml version="1.0" encoding="Windows-1252"?>
<NotepadPlus>
<AutoComplete language="lua">
<Environment ignoreCase="no" additionalWordChar=".:"/>
<KeyWord name="ACCOUNT_TYPE_GAMEMASTER"/>
<KeyWord name="ACCOUNT_TYPE_GOD"/>
<KeyWord name="ACCOUNT_TYPE_NORMAL"/>
<KeyWord name="ACCOUNT_TYPE_SENIORTUTOR"/>
<KeyWord name="ACCOUNT_TYPE_TUTOR"/>
<KeyWord name="CALLBACK_PARAM_LEVELMAGICVALUE"/>
@DiegoRibeiro
DiegoRibeiro / aindex.js
Last active October 3, 2020 19:54
Autocompletion notepad++ for TFS 1.2
// https://github.com/oozcitak/xmlbuilder-js/wiki/Examples
// https://npp-user-manual.org/docs/auto-completion/
const builder = require('xmlbuilder');
const fs = require('fs');
let c = JSON.parse(fs.readFileSync("constants.json", {encoding: 'utf-8'}).toString());
let f = JSON.parse(fs.readFileSync("functions.json", {encoding: 'utf-8'}).toString());
// merging array
let a = [...c, ...f];