Help talk:Syntax Highlighting: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 53: Line 53:
I've just added a Scilab example to the [[Barnsley fern]] page. However, when the highlighting is enabled it adds unnecessary text to reserved words such as <code>while</code> and <code>if</code>, e.g., <code>while</code> becomes <code>scilab.org/product/dic-mat-sci/M2SCI_doc.htm">while</code>. Is there any way a regular user can fix this? If no, how should I proceed form here to get it fixed?
I've just added a Scilab example to the [[Barnsley fern]] page. However, when the highlighting is enabled it adds unnecessary text to reserved words such as <code>while</code> and <code>if</code>, e.g., <code>while</code> becomes <code>scilab.org/product/dic-mat-sci/M2SCI_doc.htm">while</code>. Is there any way a regular user can fix this? If no, how should I proceed form here to get it fixed?
[[User:Luispauloml|Luispauloml]] ([[User talk:Luispauloml|talk]]) 08:31, 2 June 2017 (UTC)
[[User:Luispauloml|Luispauloml]] ([[User talk:Luispauloml|talk]]) 08:31, 2 June 2017 (UTC)

:Start here: [[Rosetta_Code:Village_Pump/Syntax_highlighting#Relationship_Between_Rosetta_Code_and_GeSHi]] --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 08:40, 2 June 2017 (UTC)

Revision as of 08:40, 2 June 2017

Help:GeSHi

Is there anything anyone wants to keep from this page? If not I can redirect it to Help:GeSHi. --Mwn3d 18:43, 5 April 2009 (UTC)

I'd like to keep the content. There are still some open issues. I don't care one way or another if it's automatically redirected. --Short Circuit 20:11, 5 April 2009 (UTC)
I redirected that page here, since I like this page better. —Underscore (Talk) 00:36, 18 December 2009 (UTC)
Works for me. :) --Michael Mol 07:43, 18 December 2009 (UTC)

Vim to Geshi translation?

For the language TXR, I have produced syntax file that works with Vim. I don't want to maintain syntax highlighting definitions in other formats (annoying chore with no benefit other than seeing the same end result in a different application). Is there some compiler from vim syntax files to GeSHi? Maybe this could be posed as a Rosetta task. :) 192.139.122.42 22:27, 1 November 2011 (UTC)

Actually, Vim can put out colorized HTML. I'm going to experiment integrating Vim into the syntax highlighting dispatch script I use in my GIT repository to use it dynamically. There is no reason to use one highlighting engine for every file type; I already use two different ones in my repo.192.139.122.42 23:23, 1 November 2011 (UTC)
Trying to get that to work proved elusive. Vim only does syntax highlighting properly, including HTML generation, when invoked in the context of a terminal session.24.85.131.247 06:41, 11 November 2011 (UTC)

Rexx Family

The three languages of that family (Rexx, NetRexx, and ooRexx) are now listed as supported but the coloring does not correspond to the three php files that I prepared and sent to Benny. How can find what's used for those languages and/or how I can langchk 'my' files?

--Walterpachl 18:59, 13 July 2012 (UTC)

Broken When Logged In

I noticed that when I logged in, syntax highlighting no longer shows up. Is there some sort of setting to be toggled to fix this? Kzh 18:51, 18 September 2012 (UTC)

-- works for me ..Walterpachl 19:29, 18 September 2012 (UTC)

Assembly Languages

Let's hope this is an appropriate spot for this. The page seems dead...

The assembly languages are a mess. Besides the other issues, the lang tags, well, there's only one: asm. And it's for x86. Two ideas for cleaning it up:

  1. merge all known instructions into asm (so that asm becomes the only assembly lang tag). This might be a bureaucratic nightmare but it's bound to be done quickly and quietly.
  2. have some sort of 'inheritance' in GeSHi files (is this possible?) so that asm will define:
    • common instructions that most/all assembly languages recognise (such as MOV)
    • common pseudo-instructions that most assemblers recognise (such as EQU, SET, macro)
    • colour definitions for instructions, comments, numbers, etc.
    asm would then be extended with additional instructions by each different assembly language. There should be a standard format for them, such as asm_MIPS, asm_ARM, etc. Unrecongised lang tags should default to asm if their specific tag doesn't exist (if that's also possible).

--Alt (talk) 04:36, 16 September 2014 (UTC)

This page links to a note on the relationship between Rosetta Code and GeSHi which to me indicates that you may need to talk to the GeSHi project if you want changes made. (I'm not certain tho.) —dchapes (talk | contribs) 16:15, 16 September 2014 (UTC)
First time I read that link, I thought this site used a custom compilation of GeSHi. My mistake. Sounds like any change is not that easy. Guess I gotta learn me some php... --Alt (talk) 04:20, 17 September 2014 (UTC)

Could we get something like <code lang=FOO> ?

MediaWiki supports inline styles with syntax highlighting.

I don't have a clear idea about how mediawiki tags are implemented, but it seems like this would be a nice feature to have, here, if it's not too much work. --Rdm (talk) 06:07, 27 February 2016 (UTC)

Scilab highlighting problem

I've just added a Scilab example to the Barnsley fern page. However, when the highlighting is enabled it adds unnecessary text to reserved words such as while and if, e.g., while becomes scilab.org/product/dic-mat-sci/M2SCI_doc.htm">while. Is there any way a regular user can fix this? If no, how should I proceed form here to get it fixed? Luispauloml (talk) 08:31, 2 June 2017 (UTC)

Start here: Rosetta_Code:Village_Pump/Syntax_highlighting#Relationship_Between_Rosetta_Code_and_GeSHi --Rdm (talk) 08:40, 2 June 2017 (UTC)