Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6993361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:45:17+00:00 2026-05-27T19:45:17+00:00

I use the Javascript Syntax Highlighter built by Alex Gorbatchev https://github.com/alexgorbatchev/SyntaxHighlighter/ I am trying

  • 0

I use the Javascript Syntax Highlighter built by Alex Gorbatchev

https://github.com/alexgorbatchev/SyntaxHighlighter/

I am trying to add support for PHPDoc comments, the PHP brush currenty matches singline and multiline comments but inside of comments when there is something like @author I would like to wrap that in a seperate class like other Syntax editors do.

I am trying to use this Regex

"\\s@[A-Za-z]+"

I tried testing it here
http://regexpal.com/?flags=ims&regex=%22%5C%5Cs%40%5BA-Za-z%5D%2B%22&input=%40author

But I cannot tell if it is working, can someone help me or let me know if that will match correctly

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:45:18+00:00Added an answer on May 27, 2026 at 7:45 pm

    The regex you’re after is:

    "\\s*@[A-Za-z]+"
    

    Note the * after the \s (0 or more whitespace characters).

    Additionally, RegexPal is not showing your match because it uses the literal regular expression, not the string version, so you should enter

    \s*@[A-Za-z]+
    

    in the top box, like this example. Note how the matched portion of the lower box is highlighted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Syntax Highlighter built with Javascript by Alex Gorbatchev (http://alexgorbatchev.com/SyntaxHighlighter/download/) The
I'm using a javascript syntax highlighter ( http://alexgorbatchev.com/SyntaxHighlighter/ ). I think this one is
I am trying to make use of this Syntax highlighter. I have tried to
I use a tool for validating JavaScript syntax, called JavaScriptLint (javascriptlint.com). I'd like my
Here's the thing. I use ' Highlight.js ' (a javascript-based automatic syntax highlighter) to
i use this javascript syntax for validating a checkbox... alert(document.getElementById(ctl00_ContentPlaceHolder1_Chkreg).checked); if (document.getElementById(ctl00_ContentPlaceHolder1_Chkreg).checked == false)
I'm trying to use SyntaxHighlighter 3.0.83 on Blogger in order to highlight some simple
I want to add just one item to an array in Javascript and use
Which plugins do you use for editing (with syntax highlighting) HTML & Javascript in
What syntax highlighting is used on GitHub (for HTML, CSS, JavaScript, C#) when viewing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.