Access Open Source Files with Ease Using the EmEditor Text Editor in C++
Access Open Source Files with Ease Using the EmEditor Text Editor in C++
Viewing 1 post (of 1 total)
Author
PostsMarch 21, 2008 at 6:02 pm #5598
shaohao
Member
This Macro is useful when you are writing C/C++ code with EmEditor. It will switch between .h and .c/.cpp files.#title = “”
#tooltip = “C/C++<->H”fso = new ActiveXObject(“Scripting.FileSystemObject”);
// get file full name
fn = document.FullName;// get base name and extension
base = fso.GetParentFolderName(fn) + “” + fso.GetBaseName(fn);
ext = fso.GetExtensionName(fn);
if (ext == “”) Quit();// get file name to be opened
if (ext.toLowerCase() == “h”) {
fn = base + “.cpp”;
if (! fso.FileExists(fn)) fn = base + “c”;
} else if (ext.toLowerCase() == “c” || ext.toLowerCase() == “cpp”) {
fn = base + “.h”;
} else {
Quit(); // unsupported
// open the file
if (fso.FileExists(fn)) editor.OpenFile(fn, 0, eeOpenAllowNewWindow);Author
Posts
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Also read:
- [Updated] 2024 Approved Explore 10 Premier Yoga Streams for Wellness Boost
- [Updated] Rapid Film Techniques Make Your Own Studio At Home
- 2024 Approved From Basics to Brilliance Fullscreen Proficiency in Premiere
- Adjusting Text Alignment in emEditor: A Comprehensive Guide
- Advanced File Handling with EmEditor - A Comprehensive Guide
- Effortless CSV Management in EmEditor, the Ultimate Text Editor Experience
- EmEditor Text Editor with Syntax Highlighting Support for Various File Extensions
- EmEditor: Configure Store Options via .ini/XML Files Rather Than Using the Registry
- Iconic Top-Tier Virtual Reality Films
- In 2024, How and Where to Find a Shiny Stone Pokémon For Xiaomi 13T? | Dr.fone
- Master Your Documents: Advanced SmartTabs and Customizable Spaces in EmEditor's Text Editor
- Pro Tip: Unearthing Windows Apps' Installed Locations Quickly
- Secrets to Mastering Chromebook Zoom Features
- Simplify Writing with EmEditor: The Premier Text Editor Software!
- Slowing Down Your Typing: How WordComplete Addon Impacts EmEditor's Response Time
- The Genuine Value of TruthGPT Coins
- The Ultimate Guide to iPad Add-Ons for a Superior Experience - Expert Reviews
- Troubleshoot and Stop Zoom Disruptions on PCs - Latest Solutions
- Ultimate Guide to EmEditor: Your Ideal Text Editing Solution
- Title: Access Open Source Files with Ease Using the EmEditor Text Editor in C++
- Author: William
- Created at : 2024-10-10 11:54:15
- Updated at : 2024-10-14 07:07:02
- Link: https://win-premium.techidaily.com/access-open-source-files-with-ease-using-the-emeditor-text-editor-in-cplusplus/
- License: This work is licensed under CC BY-NC-SA 4.0.