Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2019-11-06 10:55:55

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,553
Website

Re: Code syntax highlighting of bc in txp:body with textile?

etc wrote #319947:

that sending a js file to every visitor (even those who visit a page without any code to highlight) is not optimal.

The bold part should at least be solvable with require.js. Seeing as it’s intended for an updated revision of textpattern.tips, code will be quite common, though.

A Textile plugin would be great if you fancy exploring unbeaten roads ;-)

No idea about that as yet.


TXP Builders – finely-crafted code, design and txp

Offline

#22 2019-11-06 11:04:50

etc
Developer
Registered: 2010-11-11
Posts: 3,356
Website

Re: Code syntax highlighting of bc in txp:body with textile?

jakob wrote #319948:

Seeing as it’s intended for an updated revision of textpattern.tips, code will be quite common, though.

It’s fine in this case.

Offline

#23 2019-11-06 11:25:59

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,716
Website

Re: Code syntax highlighting of bc in txp:body with textile?

jakob wrote #319948:

The bold part should at least be solvable with require.js. Seeing as it’s intended for an updated revision of textpattern.tips, code will be quite common, though.

Conditional loading off Prism.js: I use a custom field for that. The CSS part is minimal enough that I don’t worry much.

Offline

Board footer

Powered by FluxBB