CcpnForum
How to post code - Printable Version

+- CcpnForum (https://www.ccpn.ac.uk/forums)
+-- Forum: CcpNmr Analysis Version 3 (https://www.ccpn.ac.uk/forums/forumdisplay.php?fid=4)
+--- Forum: V3 Macros (https://www.ccpn.ac.uk/forums/forumdisplay.php?fid=14)
+--- Thread: How to post code (/showthread.php?tid=47)



How to post code - LucaM - 10-29-2019

We finally added a syntax editor which supports python.

To post macros/ scripts with highlighted syntax:
add on top of the code:

[geshi= python]

Then write your code here...

[ / geshi ] close the statement with /geshi between squared brackets and all without spaces.

See attached example


RE: How to post code - LucaM - 10-29-2019

Example

Python
  1. # Test syntax
  2. for i in 'Hello World':
  3. print(i)