how not to open all files in a folder in Notepad++ - file

Trying to filter file types in Notepad++ Open file dialog box opens all files of that type in that folder
I tried to go through the Options but given they are so many, can't seem to figure out whether one can get Notepad++ to just show the files of that type instead of opening them all
I don't have any code for this
Expected results: show all files of a file type
Actual result: all files are opened.

I found the setting: (I had never changed this setting, so it was curious)

Related

How to open plain text file in KDevelop with embedded text editor

I cannot open some text files with an embedded text editor depending on the extension in the file name.
For example, if I have Wavefront .obj file, KDevelop will open it with hex editor, in the Open With menu only hex editors are available.
There is File Type Options button in the file properties, but if I click to this button nothing happens and no output in stdout/stderr from KDevelop.
I am using Gentoo Linux distribution with KDevelop 5.5.2
Had same problem, and here's quick solution:
Click right on your file in file manager (in my kde it's default dolphin);
Select "Properties";
In opened window click "File type options";
In the next opened window select "Embedding" tab;
In services prefering order list select Okteta, and then remove it;
Click ok and it's done.
KDevelop after that, stops use hex editor and open files in embedded text viewer. Note, that this recipe would work only for one file type (or extension), that was selected in first step.

Create new file with GTK

I have function creating a text file, I want that the user can choose the name and path of this text file opening a browse window. I saw gtkfilechooser but user only can choose a file and note create one defining name of the file.
I hope to have been clear.
GtkFileChooser and its implementations (GtkFileChooserButton, GtkFileChooseDialog, and GtkFileChooserWidget) can run in four modes: open file, save file, open folder, create folder. You want the save file mode. Look up GtkFileChooserAction and gtk_file_chooser_set_action(). Note that if you use GtkFileChooserDialog, this is one of the parameters to gtk_file_chooser_dialog_new().

Loading files into MAGMA

I'm trying to load files into MAGMA and am running into some trouble. Ostensibly, the command load "filename";should be sufficient. I've attempted, but keep getting the same result:
>> load "filename";
^
User error: Could not open file "filename" (No such file or directory)
The file is saved in my documents folder, so I'm not sure what the issue is. Do I have to specify the path? Save the file in a particular place?
I've tried reformatting, using both txt and rtf files, so I don't think that's the issue.
For loading file in MAGMA you can place your file in installed place folder. For example: C:\Program Files (x86)\Magma
Also if your file have an special format you should mention it.
Suppose You want loading a txt file with name a. with load"a"; you face with error. You must type load"a.txt";.
Try using GetCurrentDirectory() command to find your current directory location. And then you can use SetPath() to change where MAGMA has to be to search for your file. This will fix it.

The system cannot find the file specified

The file is inside the directory where the software is. I am trying to add the text file to the memo box.
procedure TForm4.FormCreate(Sender: TObject);
var
dir : string;
begin
Form4.Caption:='Abateri instrumente';
dir := GetCurrentDir;
Memo1.Lines.LoadFromFile(dir+'\abateri.txt');
end;
In your specific situation, you should load the file with the code
Memo1.Lines.LoadFromFile(dir+'\abateri.txt.txt');
This is because in the below screenshot that you provided, the extension of the Project3 file is hidden, which loads to the conclusion that the option to hide known file extensions is enabled. Yet the one for the abateri.txt file is shown, which can only lead to the often seen double extension mistake.
Either rename your file and remove the redundant part (the first .txt, which is preferred) or use the double extension in your code.
I would also suggest disabling that option in Windows Explorer:
Tools > Folder Options > View > Uncheck the "Hide extensions of known file types"
In addition to the above, you should always build up paths with the TPath.Combine function call to ensure that they are correct.
You can see the documentation of it here
The file is inside the directory where the software is.
In that case, looking in the working directory is the wrong approach. There's no reason why the working directory should be directory where your executable resides. You need to use:
Dir := ExtractFilePath(ParamStr(0)); // the directory where the executable resides
TPath.Combine(Dir, FileName); // TPath is from the System.IOUtils unit
Of course, your other problem is that you got your file name wrong. The file is actually named abateri.txt.txt.

Working with SASS in Adobe Dreamweaver

I am trying to figure out how to start using SASS files in Dreamweaver.
The error message I get when trying to open is: "Can't find a valid editor for this file extension".
All my SASS files are valid and open well with Eclipse.
Thanks in advance to anyone who could post any tips on this one.
OK. I have found the answer.
All you need to do is open Dreamweaver, go to Edit> Preferences> File Types / Editors
and in the top text box ("Open in code view:") listing various files extensions add .sass.
That's it. Rest is down to haml and compass.
I hope this post will help anyone having similar problem.
To go even further and make Dreamweaver treat .scss files as .css files (applying code coloring and indentation), just follow the instructions on this Adobe TechNote
The visual28 link no longer works. Here is a quick rundown from here
DreamweaverCS?/Configuration/DocumentTypes/MMDocumentTypes.xml
If Windows change winfileextension="css" to winfileextension="css,scss"
If Mac change macfileextension="css" to macfileextension="css,scss"
For older Dreamweaver:
http://www.visual28.com/articles/less-scss-syntax-highlighting-in-dreamweaver
For Dreamweaver 5.5 and above:
http://forums.adobe.com/thread/861133
instead to go in your installation directory to find the 'MMDocumentTypes.xml' file, GO to
C:\Users\\AppData\Roaming\Adobe\Dreamweaver
CS5?\en_US\Configuration\DocumentTypes\MMDocumentTypes.xml
and then find winfileextension="css" and change it to winfileextension="css,scss"...
That would definitely work..
Update to the latest version of Dreamweaver
Ensure that ‘Show hidden files’ is enabled in Control Panel > Folder options
Open your user folder eg C:\users\Dylan\ replacing with your name
Then open AppData/Roaming/Adobe/Dreamweaver CS6/en_US/Configuration/
Open the file Extensions.txt
Replace the first line with the following:
HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,JSON,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,LESS,SCSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,PHP-DIST,PHTML,JSP,WML,TPL,LASSO,JSF,VB,VBS,VTM,VTML,INC,SQL,JAVA,EDML,MASTER,INFO,INSTALL,THEME,CONFIG,MODULE,PROFILE,ENGINE,SVG:All
Documents
Replace the following line:
CSS:Style Sheets
With
CSS,LESS,SCSS:Style Sheets
Save and exit the file
Go to the folder DocumentTypes
Open the file named MMDocumentTypes.xml
Replace the line beginning with:
=>documenttype id="CSS"
with
<documenttype id="CSS" internaltype="Text"
winfileextension="css,less,sass,scss" macfileextension="css"
file="Default.css" writebyteordermark="false" mimetype="text/css" >
Save and exit the file, and restart Dreamweaver
Syntax highlighting now works

Resources