HighlighterList

Ru En

Description

A simple macro for displaying a table with list of available Pygments lexers.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

HighlighterList.py

hg

1.9.0

Current version in moin 1.9 branch

HighlighterList-1.9.0-2.py

2

1.9.0

Fixes proposed by ThomasWaldmann

PygmentsLexerList-1.9.0-1.py

1

1.9.0

First version

Usage

<<HighlighterList([<parameters, separated by comma>])>>

Parameter name

Description

columns

List of columns to display, separated by pipe character. Currently supported "description", "names", "patterns", "mimetypes". Unknown column names ignored. Spaces should be omitted. If empty, all columns are displayed.

sort_column

Name of column by which list should be sorted. Column name can be one of "description", "names", "patterns", "mimetypes". If column is not "description", item values in this columns will be split. Has effect in any case (not only when sort is True). If sort_column is empty, description column is used.

filter_re

Filtering regular expression which data in sort_column should match. If filter_re is empty, no filtering performed.

sort

Boolean value which determine whether list should be sorted.

Example

<<HighlighterList>>
<<HighlighterList(columns=description|names)>>
<<HighlighterList(columns=names|description, sort_column=aliases)>>
<<HighlighterList(columns=names|description, sort_column=aliases, filter_re=python)>>
<<HighlighterList(columns=names|description, sort_column=aliases, filter_re=python, sort=false)>>
<<HighlighterList(columns=names|description, filter_re=python, sort=false)>>

2009, EugeneSyromyatnikov.

License

GNU GPL.

Bugs

Discussion

I'm not sure that filter parameter should work as it works now, but other my ideas how it can work was too syntatically complicated and i've followed KISS principle instead. May be, some kind if js-driven datagrid live table should be implemented (with sorting, filtering and searching). -- EugeneSyromyatnikov 2009-11-16 06:20:54

MoinMoin: MacroMarket/HighlighterList (last edited 2009-11-29 01:08:32 by EugeneSyromyatnikov)