C++ header files have (per the standard) no extension. For example <string>. (That is, extensions such as .hpp, etc. are deprecated.)
Is there a way to tell TextPad that this file without an extension is C++, whereas that file without extension is not?
Thanks.
applying syntax coloring to files without extentions
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
applying syntax coloring to files without extentions
While you can apply syntax colouring to files without extensions it will apply to all files of that type.
The practicalities are that you need to add the filter '*.' to the document classes (remembering to remove this from the text document class).
The practicalities are that you need to add the filter '*.' to the document classes (remembering to remove this from the text document class).
applying syntax coloring to files without extentions
Helios, are you listening?
We need a something like a "format as" command. Once that's in place, I'd like the workspace to remember the file type of files without an extension. For example, "string" is C++, but "make" is a make file.
Files I commonly see without extensions are HTML, C++, and make files. Changing '*.' isn't really an option, because I commonly have all last two open at once.
We need a something like a "format as" command. Once that's in place, I'd like the workspace to remember the file type of files without an extension. For example, "string" is C++, but "make" is a make file.
Files I commonly see without extensions are HTML, C++, and make files. Changing '*.' isn't really an option, because I commonly have all last two open at once.
View -> Document Properties -> Syntax ...We need a something like a "format as" command.
As far as I have tested, a workspace saves the setting made under View -> Document Properties...Once that's in place, I'd like the workspace to remember the file type of files without an extension.
See above, yes, and together with workspaces the info is saved.Is there a way to tell TextPad that this file without an extension is C++, whereas that file without extension is not?
applying syntax coloring to files without extentions
This works for me.
Thanks!
(Now, if I could just give TextPad a list of files, not extensions, that would be even better -- but I'm not complaining.)
Thanks!
(Now, if I could just give TextPad a list of files, not extensions, that would be even better -- but I'm not complaining.)
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
You commented:
Start TextPad with the command option @filename.
This will open all the files that are listed, one per line, in the specified file. This overrides the option to load the workspace, specified on the General page of the Preferences dialog box.
See "Command Line Parameters" in the Help Section. Lots of useful options there.
This should solve your problem:Now, if I could just give TextPad a list of files, not extensions, that
would be even better -- but I'm not complaining.)
Start TextPad with the command option @filename.
This will open all the files that are listed, one per line, in the specified file. This overrides the option to load the workspace, specified on the General page of the Preferences dialog box.
See "Command Line Parameters" in the Help Section. Lots of useful options there.
Hope this was helpful.............good luck,
Bob
Bob