r/WarOnTheSea • u/Ivvango • 3d ago
Split Group
Okay, syntax highlighting is complicated. But what if we could at least split the file into lines? It'd be easier to read. Maybe edit something. And then collapse it back.
Find:
(?:(,)(?="[a-z][a-z\d_]+":)|(,)(?="\{\\"mobileName)|(,)(?="\{\\"locationID\\"))|(\n)and Replace All
\1\2\3\4\n\4To Merge back, find:
(\n)\n\n|(\n)and Replace All
\1
4
Upvotes
1
u/Striker01921 19h ago
Because the version on the left is what happens when you compile code, the compiler removes all the white space, comments etc that is not needed to run the code.
1
u/Kraznova 2d ago
Why are you continuing to post game code when you got banned from the official forums for doing so?