|
|
|
|
|
by rjzzleep
3285 days ago
|
|
There is no confusion from my side, I'm not sure why you're trying to use that strawman, but given your standing in the Rust community it will probably work anyway. As I said I wrote about this issue in my blog post. You're trying all sorts of hacks here, because the fundamental issue is that your data structure is the dom and css styling, so everything that other text editors would attach as few byte metadata you used to put in the dom. Which means a simple threeliner that would be a couple of bytes in a proper designed editor, becomes the following beast in atom. Yes it's better now, but the fundamental issue is that you have a weird love relationship to the browser(and no, i'm not judging, whatever floats your boat). This is even separate from the other problem that is the actual way of dealing with strings in javascript. <div class="lines" style=
"height: 54px; min-width: 913px; padding-top: 0px; padding-bottom: 0px; top: 0px;">
<div class="line">
<span class="null-grammar text plain">GNU GENERAL PUBLIC LICENSE</span>
</div>
<div class="line">
<span class="text plain null-grammar">hello</span>
</div>
<div class="line">
<span class="text plain null-grammar">what's up</span>
</div>
</div>
<div class="underlayer" style="height: 54px; min-width: 913px; top: 0px;">
<input class="hidden-input" style="top: 0px; left: 0px;" />
<div class="selection" callattachhooks="true">
<div class="region" style="top: 18px; left: 72px; height: 18px; width: 48px;">
</div>
</div>
<div callattachhooks="true">
<div class="bracket-matcher" style="display: none"></div>
<div class="bracket-matcher" style="display: none"></div>
</div>
<div class="spell-check" callattachhooks="true"></div>
<div class="wrap-guide" callattachhooks="true" style=
"left: 640px; display: block;"></div>
</div>
|
|