Trying to format my code using VSCode and need the line wrapping to actually persist in GIT, so the line wrapping needs to change the source code itself.
(don't worry about giving me advise on how this is a bad idea. I have a special use case for this - publishing)
Anyone know how to get this done? Or if this is possible with another editor or plugin, I am open to that as well.
Thanks!
I think what you are looking for is hard wrapping.
This functionality is not included in VSCode to my knowledge, but there are a few extensions that add this. Try Rewrap to start with: ext install rewrap:
Related
Printing code with Notepad++ is very handy because of the syntax-highlighting.
Unfortunately I'm experiencing a problem with printing.
Now at the left top of the page $(FULL_CURRENT_PATH) is printed, which is, D:\cppWorkspace\project1\display\GUI\main.cpp
I don't want the whole path, to the project, to be printed. However it also should not only print the file name.
In this case it should be, display\GUI\main.cpp. (which are packages inside the project and the file itself)
I tried to edit or set a Notepad++ variable, but I couldn't find a way to do this.
Hopefully someone knows how this can be fixed.
Thanks in advance,
Dennis
Unfortunately the variables are fixed, and cannot be "set" - at least as of the current version (6.3.1). They are simple replacements, handled in the expandNppEnvironmentStrs method in RunDlg.cpp
You're welcome to suggest an idea on IdeaTorrent (see the hosted apps menu on the Sourceforge project), or vote a similar idea up if one exists.
I'm writing a functional test in PHPUnit using Selenium WebDriver.
I need to do this:
$searchBox->send_keys("bath & body");
to simulate typing into a text box.
When I run the test, I see it type bath body instead, skipping the ampersand.
I eventually narrowed the problem down to one part of Jquery-ui Autocomplete that was interfering. The source option.
If I temporarily remove the 'source' option, the test runs fine.
All other javascript could remain in place and work fine.
Of course it doesn't make sense to remove the 'source' option; it's required.
Does anyone know what the problem is and whether there is a workaround?
P.S. This question started here: https://stackoverflow.com/a/11957421/470749
I've got the same problem on java.
Resolved it by define a new String like this:
String amp = Keys.chord(Keys.SHIFT, "7");
the code will simulate the key combination SHIFT+7 avoiding the issue.
Don't know how realize it on PHP, but hope it could be useful to you.
Has anyone used this option before? I do not believe that this feature is working how it should be as I am failing to compile my code once I have inserted this as a option.
The problem I am trying to achive is to pretty print a document which has no namespace, due to the document not having a namespace I can not validate it against a schema therefore the option does not work. The option seems to be the correct way to go about this reading the documentation but I can not seem to get it to work.
Would be good to hear if anyone else has had issues with this option aswell?
Thanks.
Which version of the Server are you using?
Default serialization changed for indenting of typed and untyped XML in earlier versions of 4.2 (around 4.2-3).
http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/relnotes/chap4.xml%2340996
Is there any way of persisting my F# session or serializing it into a file? i.e. so I can hand it to a friend and say "run this" and they will be at the same place I was? I know forth had this ability but I can't find any way of doing this.
An alternative would be a log file or something of similar ilk, but ideally it would strip the output and just give me the code I wrote.
On the topic of user questions, is there a config file for F# so I can add some "always includes" or alter the defaults?
There is no way to serialize the F# Interactive session or create some log of commands automatically.
The typical user interaction is that you write all your code in F# Script File (.fsx extension) and evaluate code by selecting lines and sending them to F# Interactive using Alt+Enter. If you work like this, then the F# Script File is a bit like log of your work - and you can easily send it to other people.
The good thing about this approach is that you can edit the file - if you write something wrong, you can correct it and the wrong version will not appear in the log. The bad thing is that you need some additional effort to keep the source file correct.
Regarding automatic inclusions - you can specify options for fsi.exe in Visual Studio Options (F# Tools). The --load command line parameter can be used to load some F# source at startup.
I've been using the Perl solution for Twitter via Terminal: IRSSI + TWIRSSI for the past couple of days. Amazing. The feeling so nostalgic yet so futuristic; beautiful. However, one problem still stands: Hebrew letters result as gibberish:
Any idea how or where to I can modify the script to work in a readable Hebrew?
Thanks, and G*d bless CLI.
Okay, this is a bit tricky.
The Easy Way
You could simply type in IRSSI:
/SET term_charset utf-8
The Hard Way
If things doesn't go the easy way, take a look at this.
Install FriBiDi and HebXFonts.
Now, the next part is a kind of an academic guess: It might involve some path altering in the Makefile of HebXFonts.
As for me, I did all of the above until it just worked.
Good luck.