Modify

Opened 6 years ago

Closed 2 years ago

#3680 closed defect (fixed)

#!Lineno prevents syntax highlighting

Reported by: john.femiani@… Owned by: adamansky
Priority: normal Component: LinenoMacro
Severity: normal Keywords:
Cc: john.femiani@… Trac Release: 0.11

Description

This code:

{{{
#!Lineno
#!cpp

//Comments...
int main(int ac, char** av) {
   return 0;
}

}}}

produces this result:

Incorrect Resuylts

Whereas this code:

{{{
#!cpp

//Comments...
int main(int ac, char** av) {
   return 0;
}

}}}

Produces this output:

Syntax Coloring works in my setup without LineNo....

I think that LineNo is supposed to use the syntax highlighting processor that follows it, as it does in the example.

--John

Attachments (2)

LineNoProblem.png (5.2 KB) - added by john.femiani@… 6 years ago.
Incorrect Resuylts
CppCorrect.png (1.4 KB) - added by john.femiani@… 6 years ago.
Syntax Coloring works in my setup without LineNo.…

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by john.femiani@…

Incorrect Resuylts

Changed 6 years ago by john.femiani@…

Syntax Coloring works in my setup without LineNo....

comment:1 Changed 6 years ago by xyanipheia

  • Trac Release changed from 0.10 to 0.11

Unfortunately, I have the same problem.

  • my installation: WinXP, Apache 2.2.11, Python 2.5.4, Trac 0.11.2.1,
  • used LinenoMacro: revision 3450
  • further plugins: enscript-1.6.3-9, pygments-1.0, silvercity-0.9.7 and docutils0.5, all for python 2.5.
    • These are needed by some of my colleagues fore some languages. Maybe thats the reason?
  • Additionally we have installed the TracMath plugin, that also adds a syntax highlighter

Anyway, at least for simple text this macro is very usefull.

As I have installes TRAC 0.11 i change the Trac Release. I suppose, there are some dependancies to the other syntax highlighters and their priorities?

comment:2 Changed 6 years ago by anonymous

Ditto - syntax highlighting does not work by itself either, so perhaps you are presuming a prerequisite component that not everyone has?

Still does a nice job as plain text.

comment:3 in reply to: ↑ description Changed 4 years ago by swordfish

  • Cc john.femiani@… added; anonymous removed

Replying to john.femiani@asu.edu:

[...]

If you are in windows, this may happen, I modify source to fix it. See #8329.

comment:4 Changed 2 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

(In [11940])

Fixes #3680, #8329:

  • Use regular expression from trac 0.11's trac.wiki.parser to match the processor type. This should fix incompatibility problems on Windows.
  • Organized imports.
  • Deleted empty 0.9 directory.

Add Comment

Modify Ticket

Action
as closed The owner will remain adamansky.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.