D forums now live!

Jacob Carlborg doob at me.com
Wed Feb 15 10:42:46 PST 2012


On 2012-02-15 18:16, Vladimir Panteleev wrote:
> On Wednesday, 15 February 2012 at 15:19:59 UTC, Jacob Carlborg wrote:
>>> I'm wary of magical characters because they may end up in text copied
>>> by the user. For example, what if someone posts a code sample that
>>> contains a long string of alphanumerics?
>>
>> It depends on where you paste it. Copying a string containing a
>> zero-width space and pasting it in TextMate results in a visible
>> space. If I instead paste it in TextEdit there's no visible space. I
>> tried a few other applications as well and there was no visible space
>> in those.
>
> Yes, but will the code from our hypothetical example still compile and
> work as it should?

I have no idea and it might depend on the text editor you're pasting the 
code in.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list