Giter Site home page Giter Site logo

Comments (6)

xxmarkxx avatar xxmarkxx commented on June 24, 2024

Thanx for the help last night.
Here's your code buddy.
I had to think a little outside the box.
Hope it's what you were looking for.
NOTE: this site is editing the code when I submit the comment.
You will have to add a grave accent before the t on line 2
and another grave accent that is missing before the n on the last line.

clipboard =
clipboard = ftx ClipWait StringReplace, clipboard, clipboard, f, , StringReplace, clipboard, clipboard, x, , MsgBox The TAB character has been copied to the clipboard:n`n%clipboard%

from htmlcodeconverter.

haveric avatar haveric commented on June 24, 2024

Thank you, this works wonderfully. You can even simplify it by using f twice and adding the All, A, or 1 parameter to StringReplace.

from htmlcodeconverter.

xxmarkxx avatar xxmarkxx commented on June 24, 2024

You're welcome. But I'll do you one better.
clipboard := "t" ClipWait MsgBox The TAB character has been copied to the clipboard:n`n%clipboard%

Again, put an accent on that t. Man, wish it wouldn't edit code like this....

from htmlcodeconverter.

haveric avatar haveric commented on June 24, 2024

Not bad. I'm still losing some formatting with lines that just have tabs and braces or perhaps that aren't surrounded by something (first tab in a line), but this is certainly helping. Also anything to speed it up is always appreciated. I'm thinking of trying to store everything in a variable and putting it back into the clipboard in order to paste it, instead of doing Send's for each character, that might also help.

Again, thanks for the help.

from htmlcodeconverter.

xxmarkxx avatar xxmarkxx commented on June 24, 2024

Not a prob.
Not sure why you have to use the function method for a single tab, but whatever.
Engunneer and I are having a "discussion" on this and other what I'm calling workarounds
back on the board if you're interested. Feel free to put in your two cents. ;P
http://www.autohotkey.com/community/viewtopic.php?f=4&t=88095

from htmlcodeconverter.

haveric avatar haveric commented on June 24, 2024

Thanks, I found the "Autotrim, off" from part of the tab thread that seems to fix part of my issues. I'm reading the rest of it now.

from htmlcodeconverter.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.