Enhance Your Coding Skills: Utilize Line Comments in EmEditor's Powerful Text Editor

Enhance Your Coding Skills: Utilize Line Comments in EmEditor's Powerful Text Editor

Timothy Lv12

Enhance Your Coding Skills: Utilize Line Comments in EmEditor’s Powerful Text Editor

Viewing 4 posts - 1 through 4 (of 4 total)

  • Author
    Posts
  • November 18, 2010 at 2:51 pm #9104
    shx
    Participant
    can a line comment be a regex expression.
    the language i am working in uses a period as a comment but only if there is nothing before it on the line except for spaces.
    Thanks
    Steven
    November 18, 2010 at 4:47 pm #9105
    Yutaka Emura
    Keymaster
    Hi Steven,
    No, but you can use Highlight (1) tab of configuration properties, and check “Highlight Right Side” or “Highlight Right All” to show the similar effect.
    Thank you,
    November 18, 2010 at 6:16 pm #9107
    CrashNBurn
    Member
    I have a couple regex hilighters:

    Hilight an AHK label,
    LABEL:
    [A-Za-z_0-9]+:$

    Hilight variables, like FOO+=, FOO:=, FOO.=
    [A-Za-z0-9_#[]@-]+(| |t)+(+|-|.|:)=[]?
    Now hilight the .=, :=, etc so it’s not the same colour as the variable
    (+|-|.|:)=

    Hilight variables inside percent signs.
    \%[a-zA-z0-9#_@$?[[]+\%
    While you can’t specifically call your regex a line-comment as such, you can just choose a text color for your regex that matches what you want for the line-comment.
    And do:
    ^.
    Hilight right side, as Yutaka indicated.
    November 18, 2010 at 7:28 pm #9108
    shx
    Participant
    Thanks Yutaka and CrashNBurn.
    This has been most helpful

  • Author
    Posts

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.

Also read:

https://techidaily.com
  • Title: Enhance Your Coding Skills: Utilize Line Comments in EmEditor's Powerful Text Editor
  • Author: Timothy
  • Created at : 2024-10-29 20:51:18
  • Updated at : 2024-11-05 04:48:23
  • Link: https://article-files.techidaily.com/enhance-your-coding-skills-utilize-line-comments-in-emeditors-powerful-text-editor/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Enhance Your Coding Skills: Utilize Line Comments in EmEditor's Powerful Text Editor