@invernomut0 You need htmlize installed for highlighting export.
@yantar92 I have htmlize installed. When I export an org mode with some C code I get html with some classes added to parts of code: types, pre processor directives but not for functions or constants. I was wondering which component was doing this and if it is customizable
@invernomut0 Do you mean that functions/constants are highlighted in Emacs, but do not have classes in the exported output?
@yantar92 yes exactly. If they get classes in the exported output I can style them with CSS
@invernomut0 Then, when if you switch to src edit buffer for that problematic source code and run M-x htmlize-buffer? Will the classes show up?
@yantar92 I get a lot of span elements with class “org-block”. It does detect keywords and strings and variables but not function calls. Is it possible to customize the process? Thanks for the help!
@invernomut0 Are you sure that you used M-x htmlize-buffer? There is no way htmlize itself is using org- prefix in class names.
@yantar92 I can provide some screenshots later to get a better idea of what I mean :)
@invernomut0 What is better than screenshots is a recipe starting from emacs -Q
@yantar92 In emacs I see the code in the first image. Htmlize-buffer gives me the span blocks, while in the third image there's the HTML code I get when I export the org file. What do you mean with "recipe from emacs -Q"
@invernomut0 The HTML looks right. Every single face in the original buffer has the corresponding class name in it. It is also expected that Org export prefixes class names with org-. If you do not see the correct colors in your HTML rendering, the problems probably lies in CSS stylesheet. May you check it?
By recipe from emacs -Q, I mean what we ask to do in https://orgmode.org/manual/Feedback.html#Feedback for reporting bugs. The idea is to remove your personal config as much as possible yet reproducing the problem.