// returns true when edited static bool editSnippet_replaceToken(S snippetID, S a, S b) { S text = loadSnippet(snippetID); S newText = jreplace(text, a, b); if (eq(text, newText)) false; editSnippetVerbose(snippetID, newText); true; }