emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Syntax highlighting for julia source blocks
       [not found] <dc63ff58-575d-1a3c-8072-b6199bd0daa4@housseini.me>
@ 2022-09-26 14:09 ` reza
  2022-09-26 15:15   ` Fraga, Eric
  0 siblings, 1 reply; 7+ messages in thread
From: reza @ 2022-09-26 14:09 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

Hi list

When exporting to html, syntax highlighting is automatically applied to 
exported python source blocks (syntax elements get a span element 
applied). But this does not work for julia source code blocks. Is this 
just not implemented or do I miss something?

Cheers,
Reza

[-- Attachment #2: OpenPGP_0xC375C6AF05125C52.asc --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #3: OpenPGP_signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Syntax highlighting for julia source blocks
  2022-09-26 14:09 ` Syntax highlighting for julia source blocks reza
@ 2022-09-26 15:15   ` Fraga, Eric
       [not found]     ` <f0ee94af-c8b8-ff6d-e6c3-5a94527c9568@housseini.me>
       [not found]     ` <8982e37e-88cb-5f5d-6163-b52520307690@housseini.me>
  0 siblings, 2 replies; 7+ messages in thread
From: Fraga, Eric @ 2022-09-26 15:15 UTC (permalink / raw)
  To: reza; +Cc: emacs-orgmode@gnu.org

On Monday, 26 Sep 2022 at 14:09, reza wrote:
> When exporting to html, syntax highlighting is automatically applied to
> exported python source blocks (syntax elements get a span element
> applied). But this does not work for julia source code blocks. Is this
> just not implemented or do I miss something?

What are you using to convert src blocks to HTML?  Specifically, what is
the setting of org-html-htmlize-output-type?
-- 
: Eric S Fraga, with org release_9.5.5-840-g52be6f in Emacs 29.0.50

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Syntax highlighting for julia source blocks
       [not found]     ` <f0ee94af-c8b8-ff6d-e6c3-5a94527c9568@housseini.me>
@ 2022-09-26 15:18       ` reza
  2022-09-27  6:57         ` Fraga, Eric
  0 siblings, 1 reply; 7+ messages in thread
From: reza @ 2022-09-26 15:18 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

On 9/26/22 17:15, Fraga, Eric wrote:
> On Monday, 26 Sep 2022 at 14:09, reza wrote:
>> When exporting to html, syntax highlighting is automatically applied to
>> exported python source blocks (syntax elements get a span element
>> applied). But this does not work for julia source code blocks. Is this
>> just not implemented or do I miss something?
> 
> What are you using to convert src blocks to HTML?  Specifically, what is
> the setting of org-html-htmlize-output-type?

it is set to `css', this is the correct choice, no?

[-- Attachment #2: OpenPGP_0xC375C6AF05125C52.asc --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #3: OpenPGP_signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Syntax highlighting for julia source blocks
       [not found]     ` <8982e37e-88cb-5f5d-6163-b52520307690@housseini.me>
@ 2022-09-26 15:29       ` reza
  2022-09-27  1:41         ` Ihor Radchenko
  0 siblings, 1 reply; 7+ messages in thread
From: reza @ 2022-09-26 15:29 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

On 9/26/22 17:15, Fraga, Eric wrote:
> On Monday, 26 Sep 2022 at 14:09, reza wrote:
>> When exporting to html, syntax highlighting is automatically applied to
>> exported python source blocks (syntax elements get a span element
>> applied). But this does not work for julia source code blocks. Is this
>> just not implemented or do I miss something?
> 
> What are you using to convert src blocks to HTML?  Specifically, what is
> the setting of org-html-htmlize-output-type?

Looks like I was missing `julia-mode', but still after installation, no 
syntax highlighting for julia source code blocks...

[-- Attachment #2: OpenPGP_0xC375C6AF05125C52.asc --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #3: OpenPGP_signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Syntax highlighting for julia source blocks
  2022-09-26 15:29       ` reza
@ 2022-09-27  1:41         ` Ihor Radchenko
       [not found]           ` <2db697de-82c3-3b81-ecaa-7b90781c0e28@housseini.me>
  0 siblings, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2022-09-27  1:41 UTC (permalink / raw)
  To: reza; +Cc: Org Mode List

reza <reza@housseini.me> writes:

> Looks like I was missing `julia-mode', but still after installation, no 
> syntax highlighting for julia source code blocks...

Can you please provide an example file and exact steps you did to export
it? See https://orgmode.org/manual/Feedback.html

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Syntax highlighting for julia source blocks
       [not found]           ` <2db697de-82c3-3b81-ecaa-7b90781c0e28@housseini.me>
@ 2022-09-27  6:46             ` reza
  0 siblings, 0 replies; 7+ messages in thread
From: reza @ 2022-09-27  6:46 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

> Can you please provide an example file and exact steps you did to export
> it? See https://orgmode.org/manual/Feedback.html

Sorry for the confusion, I figured it out: I was missing `julia-mode' 
and `(require 'julia-mode)'. But thanks for the support.

Best,
Reza


[-- Attachment #2: OpenPGP_0xC375C6AF05125C52.asc --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #3: OpenPGP_signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Syntax highlighting for julia source blocks
  2022-09-26 15:18       ` reza
@ 2022-09-27  6:57         ` Fraga, Eric
  0 siblings, 0 replies; 7+ messages in thread
From: Fraga, Eric @ 2022-09-27  6:57 UTC (permalink / raw)
  To: reza; +Cc: Org Mode List

On Monday, 26 Sep 2022 at 15:18, reza wrote:
> it is set to `css', this is the correct choice, no?

Yes, I set this to css and fontification of Julia src blocks works for
me.

What does the generated HTML look like?  Maybe post a snippet of the
HTML?
-- 
: Eric S Fraga, with org release_9.5.5-815-gae2140 in Emacs 29.0.50

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-27  7:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <dc63ff58-575d-1a3c-8072-b6199bd0daa4@housseini.me>
2022-09-26 14:09 ` Syntax highlighting for julia source blocks reza
2022-09-26 15:15   ` Fraga, Eric
     [not found]     ` <f0ee94af-c8b8-ff6d-e6c3-5a94527c9568@housseini.me>
2022-09-26 15:18       ` reza
2022-09-27  6:57         ` Fraga, Eric
     [not found]     ` <8982e37e-88cb-5f5d-6163-b52520307690@housseini.me>
2022-09-26 15:29       ` reza
2022-09-27  1:41         ` Ihor Radchenko
     [not found]           ` <2db697de-82c3-3b81-ecaa-7b90781c0e28@housseini.me>
2022-09-27  6:46             ` reza

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).