Jump to content

Recommended Posts

Posted

From time to time, I copy/paste snippets of code in the forum here to my editor (SublimeText).  Unfortunately, I think the forum software sometimes throws in invalid, INVISIBLE unicode characters that break the copied code and usually will throw PHP errors that at first sight don't make any sense.  These characters are impossible to detect in SublimeText, but with the following plugin I just discovered, it will identify them:

https://packagecontrol.io/packages/Gremlins

  • Like 6
Posted (edited)

My strategy is to get rid of those characters right off the bat, instead of detecting them. Here is a previous post of mine:

https://processwire.com/talk/topic/20865-permissions-for-page-reference-field-linked-to-users/?do=findComment&comment=180797

By having a system wide tool, one can even use it anywhere not just in a favorite editor. I also use little tools like turning strings into "url friendly string", "lowercase/UPPERCASE/CamelCase".

BTW, the new forum update is very aggressively turns forum ULRs into those big preview boxes. Previous version transformed the link right after pasting it in but not later on. This new forum versions keeps converting the links – on seemingly random occasions – even after I have opted for the "plain text" version . Very annoying.

Edited by szabesz
typo
  • Like 1
  • 3 weeks later...
  • 2 months later...
Posted
Quote

BTW, the new forum update is very aggressively turns forum ULRs into those big preview boxes . . . .

Agreed. Seems that the over-engineering is now spreading from processwire into the forum.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...