I am not able to compare two files in sublime text 3. I have selected the two files I want to compare, however there is no Diff File option when searching for option through right click..
You have to install a package such as:
Sublimerge, FileDiffs, Diffy between others.
Once you have it installed, just follow the instructions of the creator.
Useful links:
https://www.slant.co/topics/2030/~best-diff-plugins-for-sublime-text
https://packagecontrol.io/packages/Compare%20Side-By-Side
Use third party software Code Compare to compare code file and whole project.
Related
on kdevelop, you can configure a file filter ( on top of project tree ). Normally, the project tree shows a lot of files with different extensions, e.g xy.conf, xy.prf, moc_xy.cpp, moc_xy.h and so on. I want hide all unnessary files with following regex: [^\moc][a-z]*\.(h|cpp). But if I use this regex, it shows me no files. Whats wrong with this regex?
I also, read this post but the answer: \.(h|c(pp)?)$ doesn't work.
Best regards, Chris
You can only show *.h/c/cpp files in your project by first excluding all files * and then adding these inclusive patterns for them.
Like this, e.g. add this to your .gitignore/.hgignore file:
*
!*.h
!*.c
!*.cpp
If you don't have such filter files, you can configure them in the kdevelop's project fileter by adding includes and excludes:
try this:
.(h|c(pp)?)$
it works when i tested it here
I am trying to find a way to call notepad++ from command line with compare plugin showing the compare result providing I pass 2 files name which I want to compare.
Think like I have a batch file, which does some work and result is opening notepad++ showing 2 files in compare mode. (Yes, compare plugin is installed)
If anyone has any other suggestion to using any other editor or software also welcome..
tl;dr:
The command is Notepad++\plugins\ComparePlugin\compare.exe file1 file2.
Details:
Download the compare plugin https://bitbucket.org/uph0/compare/downloads/ComparePlugin.v1.5.6.6.bin.zip. Installing the compare plugin from the plugin manager within Notepad++ does not install the requisite exe. I assume you could also build from source to obtain the exe.
Follow the manual installation instructions in the readme:
To install manually, copy ComparePlugin.dll and ComparePlugin subfolder
into the plugins directory C:\Program Files\Notepad++\Plugins.
For a portable Notepad++ installation, you need to run the command from a directory above the notepad++ directory (or with absolute path of exe), otherwise you get an error that Notepad++.exe is not found.
The commands look like this:
>cd C:\portapps\Notepad++
>cd ..
>Notepad++\plugins\ComparePlugin\compare.exe C:\files\file1.txt C:\files\file2.txt
ufo's answer put me on the right track but it did not contain the commands to run.
There's a tool called NppCompareLoader doing exactly what you want. Simply drop it in the N++ installation folder. I'm using it since many years as a diff viewer for TortoiseSVN and TortoiseGit, thus you should certainly be able to call it right from command line.
/EDIT
Since the (unofficial) Compare-plug-in version 1.5.6.6 the additional loader mentioned above isn't required anymore. There's already one included in the plug-in. Here's the regarding change-log fragment:
NEW: Loader for using N++ as an external diff viewer (e.g. in TortoiseSVN, TortoiseGit, ..)
I'm compiling CEF (Chromium Embedded Framework) for our local html5 presentation.
I should say I'm very new for all this (CEF and C++).
I've already optimized cefclient project for the presentation, but I need to embed all html/js/css/etc files into project (reading from local storage is not an option).
As I understood, I should use .zip or .pak (renamed zip) files to embed. But how can I use them inside the project?
Should I use some lib for unzipping (zlib?) or there is another popular way? And how can I be sure that files will be compiled into project?
Sorry for such basic questions but there are very few information about this (or google hates me today).
Thank you for any help!
UPD: found great tool - WBEA (http://asterclick.drclue.net/WBEA.html), it looks like exactly what I want to, but works pretty slow (with JS).
UPD 2: It turns out that there are many ways to make HTML5 desktop application, for example Node-Webkit.
Here is an article that compares some of them http://clintberry.com/2013/html5-apps-desktop-2013/
You need:
Create zip file whitin your resources.
Embed it as win32 resource (after this step you will get correct executable with .zip file inside).
Create custom scheme handler to access this zip file.
CefZipReader class will be handly to implement handler from step 3.
Look around, may be something like what you want already exist somewhere.
This sounds very similar to self extracting installers.
No need to compile anything, just concatenate the zip to the end of the executable. All you need to do is find the offset at runtime from the start of the executable. This can be done easily by writing a large magic number and looking for it later.
Example Linux:
cat app magic_number data > new_app
Example Windows:
copy app.exe /B + magic.dat /B + data.dat /B new_app.exe
I am editting my C++ program on a unix cluster by using emacs. I wanna emacs to highlight key words in C++. After searching online, I decide to install cc-mode-5.3.3. But I stuck here:
follow the readme instruction at http://cc-mode.sourceforge.net/src/README
After byte compiling, I don't understand
Put the compiled files somewhere (X)Emacs will find them, i.e. in
some path that's in the load-path variable. You must make sure
they are found before any CC Mode files which are distributed with
(X)Emacs. A directory has higher precendence than all directories
after it in the load-path list.
GNU Emacs comes together with cc-mode installed by default, so you don't need to install it manually. To enable symbols hightlighting, you need to set variable global-font-lock-mode to true value, for example, by using M-x customize-variable global-font-lock-mode, switching it to t, and pressing Apply and Save.
P.S. Are you running Emacs in console, or in graphical mode? If in console, then you could be need to setup corresponding font-lock faces. Use the M-x customize-face command to set faces whose names are starting with font-lock-
Is it possible to compare the contents of two files in Dreamweaver?
Yes
However, dreamweaver doesn't have native compare tool.
You will need to download a third-party merge or "diff" utility and configure Dreamweaver to integrate with this program.
WinMerge utility
To configure dreamweaver use compare tool go to:
Edit -> Preferences (CTRL + U) -> File Compare -> "Browse..." for executable file of compare tool
Download and install notepad++ (a wonderful free editor).
If you want to compare two local files:
Open the two files in notepad++.
Choose Plugins -> Compare (or alt-D).
If you want to compare a remote file with some other file, follow the instructions in Dreamweaver Help for comparing files. Tell DW you will use notepad++.
Don't think that DreamWeaver has that functionality, but it has been a little while. I use winmerge...it's free. Can be found here.
Dreamweaver 8 is able to do so (according to Adobe), however, you have to install a third-party-product to enable it (so I doubt that one can call this beeing able).
Here are some links:
http://mrmx.blogspot.com/2005/11/adding-file-compare-to-dreamweaver.html
http://wordpress.betech.virginia.edu/index.php/2007/08/20/compare-files-in-dreamweaver/
http://www.adobe.com/devnet/dreamweaver/articles/compare_utilities.html
http://www.communitymx.com/abstract.cfm?cid=B6FEB
My choice when it comes to comparing two files is WinMerge:
http://www.communitymx.com/abstract.cfm?cid=B6FEB