Is there anyway to change the color of the toolbar in notepad++? - editor

I have tried changing the background color of toolbar in notepad++. I am not been successful so far. Frankly speaking I am not so liking the toolbar color and would like to have a dark background to the toolbar. Is there anyway I can do the same? Thanks in advance

Take a look at this question on Superuser. I haven't tested it, but I think it can help.
below there's the hack (as explained in the link):
The themes, as you guessed, can't do this (they only handle what's in
the text editing window). To change the colors you'll have to make
some very simple changes (since it's only changing color values) to
the source code (download from the site or GitHub).
Extract the file Find the elements whose color you'd like to change,
and change them. All colors I've seen are denoted RGB(xx,xx,xx)
Rebuild (see /readmeFirst.txt once you've extracted) I've just glanced
at these files, but I'm definitely going to work at this a little
tomorrow and I don't mind giving you my results once I've solved it.
Anyway, what I've seen at a glance is that you'll want to look in
/PowerEditor/src/ScitillaComponent/DocTabView (I think)
/PowerEditor/src/WinControls/TabBar
/PowerEditor/src/WinControls/ToolBar That's all I noticed that might
be of interest so far, but again, I'll look at it more tomorrow and
get back to you.
Edit: the official makefile will give some errors, because
/PowerEditor/src/Parameters.h references files incorrectly. Here are
the two I fixed so far:
#include "TinyXml/tinyXmlA/tinyxmlA.h" (line 33)
#include "TinyXml/tinyxml.h" (line 37)
Change those lines in Parameters.h to what I've written to deal with
them. Don't worry about the warnings ("extra tokens after #endif") -
they're just comments.
Edit 2: I'm using VS2012, in which the build process results in
numerous errors. I won't post them here unless someone eventually asks
about them, in which case I'm happy to do so. I should have a working
build up soon!
Edit 3: It seems Notepad++'s provided VS project file was created with
an earlier version of Visual Studio, and in updating the files, Visual
Studio 2012 creates many problems, so if you go that route, use
VS2010.
Edit 4: I didn't make it obvious in Edit 3, but I gave up after
realizing just how difficult it was going to be to get around the VS
errors. I imagine the code has changed significantly since I wrote
this answer as well; unfortunately I didn't note the version, but I'm
sure it was the latest available at time of writing this answer,
which, according to "All versions", was probably either 6.4.1 or
6.4.2. However, I hope this is a useful starting point for anyone else who reads (this answer has received consistent attention since
writing).

As far as I see into details of creation of the user interface elements (buttons, toolbars etc.), the answer is that toolbar color cannot be changed until developer explicitly built such a feature into the application. And N++ has no such a feature if you check its settings.
You can achieve changing of toolbar color by standard way: override toolbar painting routine after you grabbed N++ sources. Then compile custom Notepad++.exe which reflects your change.
If you feel toolbar coloring would be useful not only for you, but for number of users, consider registering a feature request for Notepad++ as many people (including me :)) already did for various features of N++.

Go to Settings> Preferences
Then select Enable dark mode.
Then you have the option to pick colors for the dark mode and can even set custom colors

Related

How do I make my AndroidManifest.xml editable again?

I'm developing my first apps in Android Studio (3.1.2) and I've managed to complicate my life by making my AndroidManifest.xml file read-only in one of my projects. When I click on it in the Project view, it comes up as two panes side by side, neither of which is the view I'm used to from my other projects; the view on the right says "Merging Log Value provided by Gradle"; the view on the left only allows me to DELETE lines of the manifest but I want to add some lines. I assume these views are useful to someone but they aren't to me at the moment. I'm just trying to do a straight-forward edit on the file and I can't find any option to make it appear in the editable way that I'm used to from other projects. I think I must have clicked on something somewhere in the Android Studio GUI that caused this problem but I'm darned if I know what I did.
If someone could tell me how to make the file editable again, I'd be grateful for your guidance. Bonus points if you tell me how I messed myself up so that I can avoid doing it in the future!
It turns out this was very easily solved. I just noticed that there are TWO tabs available when you look at a manifest.xml and I was in the "merged manifest" tab. As soon as I clicked on the "text" tab, my manifest.xml file appeared in its normal fully-editable form.
I must have clicked on Merged Manifest - although I don't remember doing so! - and then simply not seen the tab again until just now.
My insomnia's been pretty bad this week so I'm going to chalk this up to that. :-)
Anyway, I'm just going to leave this question and answer here in case it helps someone else some time in the future.

How to print a file from VsCode?

I want to send the file I'm currently editing to a printer, like I did in Notepad++ for example.
I havn't found any hint on a print command. Is it not possible ?
It is not yet available, but I found an issue report for that feature.
It's currently in the backlog, so we can expect it soon.
https://github.com/Microsoft/vscode/issues/5953
Edit:
In the meantime:
https://marketplace.visualstudio.com/items?itemName=nobuhito.printcode
https://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print
Now you can install addon for VS Code - search "PrintCode".
Note that the repository for this extension was last updated in February 2018 with numerous issues outstanding.
I found the PrintCode extension inspiring but unfinished and with a number of flaws. In particular it depends on a specific paper size to wrap and as a result does not respond well if you change paper size or orientation in the print dialog.
It's open source so I looked at the code and didn't like that either. No programmer ever likes another's coding style. So I pinched the idea of using a web-browser as platform driver for HTML printing -- my hat is off to the PrintCode author for that cunning insight -- and wrote my own.
In the process I fixed all the known bugs, added everything on my wishlist and a couple of things suggested by others. The biggest thing was figuring out the CSS required to respect print dialog paper size and orientation. This also sorts out the mysterious disappearing line numbers problem, although I'm not sure why. The next biggest thing was learning to probe for an unused port, a problem that also afflicts PrintCode causing the browser to open showing no content.
Major issues
PrintCode depends on a web service. You can't use it offline.
Many people want to be able to open a file, select a portion and print just the selection.
The print dialog supports changing paper size and orientation. This clashes with the way PrintCode works.
Some people like to run multiple VS Code windows.
When you print a markdown file, you probably don't want it printed like a text file when it can be rendered with fonts and proper headings and bullets etc.
Support is required for remote workspaces.
Because each instance of VS Code needs a different port for its embedded webserver, you can't just use a setting. Dynamic port allocation is necessary.
Remote workspaces weren't even a thing until two years after maintenance ceased on PrintCode.
If you want to survey your options, get onto https://marketplace.visualstudio.com, choose the Visual Studio Code tab and search for printing.
If you just want a link to my version, it's here http://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print.
If you like what you see but need something I haven't thought of, the marketplace page has a link to the repo on github. Create an issue and tell me what you need -- or write it yourself and submit a PR.
Now there is an extension available for printing from the VS Code Editor.
It's called VS Code Printing Free.
I've tried it for a couple of days and it works fine.
Poor man's answer: Copy code to Notepad2 or Notepad++ and print from there.
The colour coding will be different though
You can use an Extension of VS Code: PrintCode
Install extension PrintCode
On Mac: command + shift + P
choose command> PrintCode
I have modified the https://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print. If you change the values that I have marked in the picture in the extension settings a browser tab opens with the you can then print this also works on the Ipad. It works also with the code-server Version inside a Docker Container.
I put the file on github https://github.com/chrishdx/vsc-print
enter image description here

SynEdit change markers (yellow or green line on gutter)

does anyone know how to add "change markers" functionality to SynEdit? I mean those lines, green for modified & saved, yellow for modified & unsaved parts of document... here is an example from other editor: http://img222.imageshack.us/img222/6474/editori.jpg
Yes, I've added it to my copy of SynEdit. I originally snagged the code from another project.
It is broken across (at least) two different units IIRC.
You need to modify SynEditTextBuffer.pas as well as SynEdit.pas.
The code is rather complex because you need to modify several spots in SynEditTextBuffer.pas as well as 1 or 2 spots in SynEdit.pas.
The original project I snagged the code from was being very ambitious in that they were trying to develop code folding and line blocking (as shown in your image) as well.
I couldn't get the code folding to work reliably so I dropped that mod and just used the line change code. I believe that dropping the code folding also dropped the line blocking.
The name of that project is SynEditSudio, it from a Chinese website, but I believe the Firefox translator plugins work pretty well in converting it.
EDIT: contact me directly if you want to get a copy of my changes.
HTH
Ryan.

SketchFlow prototyping font not displaying

I'm using SketchFlow for the first time, and am confused as to why my text isn't showing up in the "Buxton Sketch" font it's supposed to (see image). I just did a repair installation, and it didn't make a difference. In the Text properties, I don't see "Buxton Sketch" as an option, either. I'd appreciate any help.
UPDATE
Everything looks fine in the SketchFlow player (when I hit F5), but not in the designer.
Compared to this:
Proper "wiggly" font http://www.lorenheiny.com/wp-content/uploads/sketchflowwigglystyles.png
I tried downloading the SketchFlow files from a tutorial I had used, and it worked fine. It turned out the difference was that my files resided within a subfolder of a directory I had named "C#" - where I've kept all of my Visual Studio source files for a long time, with no problems (until now). Moving the SketchFlow project to a different directory fixed it.
What makes it even stranger is that the C# directory is 2 levels higher up than the solution's directory, so I don't know why anything within the solution would even matter.
Are you able to create anything with that font? Can you create a textblock and set the text to the Buxton Sketch font?
We encountered this same issue - but found a slightly different solution.
In our case, SketchFlow projects were being in the default location (My Documents\Expression\Blend 3\Projects), and the screens weren't coming up with Buxton Sketch.
The difference we found is that, in our environment, "My Documents" is mapped to a network storage location (H:\Data). What we observed was:
Open the project via My Documents\Expression\Blend 3\Projects. No Buxton Sketch. :-(
Open the project via H:\Data\Expression Blend 3\Projects. Buxton Sketch OK. :-)
Click "Embed" in the Text properties on most "Sketchy" controls to get Buxton Sketch to appear at design time in Blend for MS Visual Studio 2013 (v 12.0.50429.0 update 2)
If you paste items from other sketchflow screens, ensure you paste after you have already added a "Sketchy" control to your screen and don't "Overwrite existing resource with copied resource" when a "Resource Key Conflict" occurs, "Discard the copied resource and use the existing resource" if the resources from your copied items already exist or leave as default and add them.
First, make sure you've started by creating a new Sketchflow Application from Blend 3. Then from within Blend 3 in your Sketchflow project on the toolbar, click the chevron at the bottom of the list (the >>). From there expand Styles and select SketchStyles. From there you should see all the sketchy controls like BasicTextBox-Sketch and ListBox-Sketch. Those all have the sketchy look that you want.
It shows up at design time for me.
(source: bryantlikes.com)

Skins in delphi7

I wish to skin my aplication and have noticed that there appears to be no obvious way to do this.
I am used to skinning files for java and wondered if there was any way of changing the appearance of the "standard" delphi7 application.
Edit:(taggs)
Have you looked at SpTBXLib?
http://www.silverpointdevelopment.com/sptbxlib/index.htm
I use the Developer Express Skins library. This works well for standard components, and their own. You can create custom skins, or use their standard ones which include nicely designed haloween and winter ones. They also have a ribbon control to make your app Office 2007 look.
I've seen positive comments about AppFace, but I have not tried it.
Looks like there are some relevant links in this forum thread
Appface looks promising with the extreem looks and the need for just 2 lines of code. but thats a lot of money to make four buttons and a editbox look nice.
linkrank does the same thing but does not look as good and costs even more this time about 180.
Again both seem to boast that you only need 2 lines of source code and theme file.
the link to given forum did not seem to yeild any results apart from these two.
Would be br8 to find a free version even if i have to put in more work myself.
Edit: "suipack" is yet another tool for the same job
Re-Edit: VCL seems to be the basis of what is needed here some copenents listed on
http://www.vclcomponents.com/catalog/Delphi_Skin
Re-Edit-2: found a freeware version here
Re-Edit-3: added coponent but not only is there no help file with this it seems to be incomplete as throws a cannot find "skins.pas" exception
http://www.vclcomponents.com/Delphi/Form_Enhancement/VclSkin-info.html
gone evaluate it and post results back up.
After spending hours installing it or not,, as the case was,, installed the unicodecontroler and the toolbar2000 but the toolbar200 seemed to have a issue with the library path and after i fixed it it would not alow me to reinstall, i had to do this as SpTBXLibDsgn_*.dpk would not install due to not finding reference of tb2kdsgn_d7.dpk..
this results in me going ARRRRRGGGHHHHHH and bashing my head on the wall, the only method for creating skins for free in delphi7 comes as 7 manual installs(as a noob this was hard)
and thenn when i make a boo boo it wont let be uninstall,,, ouch
looks like there will be no styles for me....
Edit: if anyone wants to go for styles i seriously suggest the multiinstaller that i didnt see untill i had currupted my tbk2000 package :(
Another skinning component set for Delphi is AlmediaDev
AFAIK, there are two Delphi components available to skin your application without requiring any code, but both are not free
VCLSkin
SuiSkin

Resources