Comments (6)
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.
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.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmlcodeconverter.