How to Enable Regex-Based Syntax Highlighting in EmEditor: A Comprehensive Guide
How to Enable Regex-Based Syntax Highlighting in EmEditor: A Comprehensive Guide
Viewing 6 posts - 1 through 6 (of 6 total)
- Author
Posts - February 12, 2012 at 2:15 pm #10011
ToadLoadin
Member
Hi, I’m writing some little AHK scripts to help my daily work, so I’m tweaking around the ahk syntax highlight configs.
Since I want to highlight subroutine labels of ahk script, I tried this pattern:
^sw+:(?=s$|s*;.*$)
Which means words and a colon follows some space or right at the beginning of the line.
The “(?=s*$|s*;.*$)” part is a positive lookahead search , which means I want to have it could be followed by spaces or a line comment (; blah blah…), but it does not work as I expected, it can only be followed by spaces, once there is some comment followed, the highlight goes off.
Could anybody give me some hints how to correct it? :-)
February 12, 2012 at 9:44 pm #10012
Stefan
Participant
Don’t know. Seems to work for me.
EmEditor 11.0.5, 32-bit, Boost 1.47
What’s the differences?
February 13, 2012 at 5:16 am #10013
ToadLoadin
Member
囧 Quite weired…
I have exactly the same version.
February 13, 2012 at 5:19 am #10014
ToadLoadin
Member
EmEditor v11.0.5 (32bit)
under Win7 32bit, simplified Chinese…
February 13, 2012 at 2:12 pm #10016
ToadLoadin
Member
Well, I got it.
It’s because there is a line comment setting which starts with the character “;”.
While the line comment setting turns off, the regex highlight works fine.
Hi Yutaka, is this a bug?
February 13, 2012 at 6:23 pm #10017
Yutaka Emura
Keymaster
Hi ToadLoadin,
Currently, this is the specification. If the Line Comment character appear in the middle of a line, then the highlight will be turn off. This is because of optimization.
Thank you, - Author
Posts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Also read:
- [New] 2024 Approved Free Audio Treasures to Amplify YouTube!
- [New] Behind-the-Camera Glory Spotlight on Top 10 Female YouTubers
- 1. Steps to Monitor Your Printer's Ink Supply: A Guide by YL Computing
- 在武则天的时代,有多少政令违背其初心? YL Software的专业解构
- Elegant Gold Digital Artwork for Screens: Professional Image Collection From YL Software
- In 2024, The Chronicles Uncovered Top 10 Historian's YouTube Picks
- In 2024, The Easy Way to Remove an Apple ID from Your MacBook For your iPhone XR
- Step-by-Step Tutorial: Setting Up vCenter Server Appliance with ESXi
- Swap and Sync: Connecting Your Logitech Wireless Mouse to Another Transmitter
- The Seat of Arbitration Determines the Procedural Law that Governs the Arbitration Process and Can Affect the Degree of Court Intervention.
- The Ultimate Recovery Solution: Retrieving Permanently Deleted Files in Windows Environments with YL Software Support
- Tips for a Seamless Experience Accessing YouTube Video Comments
- Unlock Greater Sound Quality: Expert Guide to Boosting Your Sound Card's Performance with YL Software Solutions
- Unveiling Hidden Threats: How to Identify Viruses & Malware in Your Computer System - Tips From YL Software Experts
- Title: How to Enable Regex-Based Syntax Highlighting in EmEditor: A Comprehensive Guide
- Author: Steven
- Created at : 2025-01-24 23:55:06
- Updated at : 2025-01-27 07:25:13
- Link: https://win-webster.techidaily.com/how-to-enable-regex-based-syntax-highlighting-in-emeditor-a-comprehensive-guide/
- License: This work is licensed under CC BY-NC-SA 4.0.