Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
properties
c.properties 2.2 kB 2 04-Oct-2006 16:25 Sothach
bmp
checker.bmp 5.8 kB 1 05-Oct-2006 10:30 Sothach
jar
colorcode-plugin-src.jar 14.2 kB 5 05-Oct-2006 13:08 Sothach
jar
colorcode-plugin.jar 13.2 kB 4 16-Jan-2007 10:51 Sothach
bmp
colorcode_eg.bmp 30.1 kB 1 29-Sep-2006 15:06 Sothach
bmp
colorcode_eg2.bmp 398.8 kB 1 29-Sep-2006 15:15 Sothach
properties
java.properties 1.9 kB 2 04-Oct-2006 16:25 Sothach
dtd
project1.dtd 0.7 kB 1 09-Oct-2011 16:43 71.178.151.165
xml
project1.xml 5.4 kB 1 09-Oct-2011 16:43 71.178.151.165
properties
sql.properties 2.2 kB 2 04-Oct-2006 16:25 Sothach
properties
vm.properties 1.9 kB 2 04-Oct-2006 16:25 Sothach

This page (revision-85) was last changed on 22-May-2012 17:56 by 195.243.246.51  

This page was created on 29-Sep-2006 14:22 by Sothach

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 removed 3 lines
!!Color Code Plugin
By [RoyPhillips]
At line 20 changed one line
classpath, for example, a [properties file|ColorCodePluginProperties], and use the properties in it to format the text. These properties define how (color, bold, italic) each element, such as keywords will be rendered, as well as listing the keywords and optionally, 'special' patterns in the text (see XML example below). Using the settings distributed, the example renders:
classpath, for example, a [properties file|ColorCodePluginProperties], and use the properties in it to format the text.
At line 19 added 11 lines
----
*Could someone write here a short example where to actually put .properties file. Can't get this working.
;:--Juhani, 26-Oct-2006
[Short Properties file example|ColorCodePlugin_egproperties] -- contents & location
These properties define how (color, bold, italic) each element, such as keywords will be rendered, as well as listing the keywords and optionally, 'special' patterns in the text (see XML example below). Using the settings distributed, the example renders:
At line 68 added one line
At line 61 changed one line
[Back|ContributedPlugins]
[<< Back to Contributed Plugins|ContributedPlugins]
At line 83 changed one line
Fixed the special pattern matching to respect the '^' start-of-line anchor, making it easier to describe syntaxes such as Java {{.properties}}:
Fixed the special pattern matching to respect the '^' start-of-line anchor, making it easier to describe syntaxes such as Java {{.properties}} files:
At line 87 changed one line
{{colorcode.special.variable.pattern=__'^~[a-zA-Z0-9 /\\.-~]+'__}}\\
__{{colorcode.special.variable.pattern='^~[a-zA-Z0-9 /~\~\.-~]+'}}__\\
At line 91 changed one line
{{colorcode.special.varsub.pattern='\\{~[0-9~]+\\}'}}\\
{{colorcode.special.varsub.pattern='~\~\{~[0-9~]+~\~\}'}}\\
At line 111 added 29 lines
----
Hi Roy... nice. And a rather compact little beastie, for anyone who care to look at the code and design of the plugin -
One thing: some control over font-size would be nice... the HTML prologue/ epilogues currently come from hardcoded constants, and specify explicit sizes which would tend to override CSS?
Later:
We did manage to get past this - CSS style on 'code' tag, and use !important for the font-size specification. (thanks Phil Duhs for this tip)
My preference for code snippets, is definitely *smaller* rather than *large print*. We run a development shop here not a, ahem, remedial reading course :)
--Thomas Whitmore, 11-Jan-2007
----
Thanks for the comments, Thomas, I have added a new way of specifying markup styles in this plugin using spans/css classes (thanks to Damien French for the use case & testing). It works like this:
Set the parameter {{spans}} to 'true' ({{ColorCodePlugin spans='true'}}), and it will insert spans with class set to the 2nd part of the property for the type of token, so if it's a symbol (property 'colorcode.symbol') it'll get class='symbol'. An external css can then define the appearance of that element.
The built-in classes are : normal, keyword, symbol, string, number, comment, and 'specials' defined will get the user-defined part used as the class name, so "colorcode.special.email" will generate class="email"
Does that help in your case?
-- Roy, 16-Jan-2007
----
Has anyone done a properties file for python syntax? Thanks.
-- Mariano, 27-Aug-2010
----
[<< Back to Contributed Plugins|ContributedPlugins]
Version Date Modified Size Author Changes ... Change note
85 22-May-2012 17:56 6.691 kB 195.243.246.51 to previous
84 22-May-2012 16:19 6.464 kB 195.243.246.51 to previous | to last
83 05-Feb-2011 10:49 6.691 kB Harry Metske to previous | to last removed spam
82 04-Feb-2011 16:08 6.755 kB SamuelWilson to previous | to last
81 27-Aug-2010 16:46 6.691 kB AnonymousCoward to previous | to last
« This page (revision-85) was last changed on 22-May-2012 17:56 by 195.243.246.51