â„–12166[Quote]
>>12159 (OP)Just dont anger the Jannie overlords
â„–12172[Quote]
>>12166not gunna happen. I hate jannies
â„–12177[Quote]
Gentlemen, how does one embed code on the sharty? It seems each vichan fork/instance has a unique solution, or none at all.
Let's begin!
TRIAL #1: BBCode-style v1 (labeled lang hint)
[code language=php]
<?php echo "Hello, world!"; ?>
[/code]
TRIAL #2: BBCode-style v2 (unlabeled lang hint)
[code php]
<?php echo "Hello, world!"; ?>
[/code]
TRIAL #3: BBCode-style v3 (simple monospace, no highlight)
[pre]
```php
<?php echo "Hello, world!"; ?>
```
[/pre]
TRIAL #4: Markdown-style v1 (no lang hint)
```
<?php echo "Hello, world!"; ?>
```
TRIAL #5: Markdown-style v2 (with lang hint)
```php
<?php echo "Hello, world!"; ?>
```
â„–12180[Quote]
>>12177Iirc think this should work, when I used it some time ago it worked.
Unless they removed it/changed it or made a bug.
<?php echo php_info(); ?>
â„–12181[Quote]
>>12177You have to put three opening and closing back ticks and the code on a single line (inline), so no new lines.
Let me try putting the opening php tag inline and a the rest of the code on new lines:
```<?php
echo php_info();
?>```
â„–12182[Quote]
>>12181Yup, if there are new lines it doesn't work, bruh
Froot fix this.