Bug 160362 - Syntax Highlighting Support
Summary: Syntax Highlighting Support
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/does-sy...
Whiteboard:
Keywords:
Depends on:
Blocks: 43089 160360
  Show dependency treegraph
 
Reported: 2024-03-25 20:16 UTC by `{third: "Beedell", first: "Roke"}`{.JSON5}
Modified: 2024-04-19 19:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description `{third: "Beedell", first: "Roke"}`{.JSON5} 2024-03-25 20:16:13 UTC

    
Comment 1 `{third: "Beedell", first: "Roke"}`{.JSON5} 2024-03-25 21:33:17 UTC
This is for adding the plumbing necessary to support multiple syntax highlighters in the (plain text) editor, if that support doesn't already exist (I don't see any evidence of it).
Comment 2 Werner Tietz 2024-03-26 09:09:58 UTC
-1

It is NOT the scope of writer!
there are already a few extensions that provide syntax highlighting, so we don’t need a builtin feature!

There are enough Tools which provides proper Syntaxhightlighting… so why reinventing the wheel?
Comment 3 `{third: "Beedell", first: "Roke"}`{.JSON5} 2024-03-26 20:23:30 UTC
(In reply to Werner Tietz from comment #2)
> -1
> 
> It is NOT the scope of writer!
> there are already a few extensions that provide syntax highlighting, so we
> don’t need a builtin feature!
> 
> There are enough Tools which provides proper Syntaxhightlighting… so why
> reinventing the wheel?

Provide an example. I was of the impression, per https://ask.libreoffice.org/t/does-syntax-highlighting-exist-as-a-feature/103940/4, that such extensions' scopes were limited to advanced file formats (like DOCX and ODT, etcetera) and in limited fashions (custom text boxes) rather than for all text, especially plain text.
Comment 4 Roman Kuznetsov 2024-04-17 07:48:04 UTC
-1 from my side. 

I used this extension https://extensions.libreoffice.org/en/extensions/show/5814 when I have formatted my latest book about programming
Comment 5 Heiko Tietze 2024-04-17 08:32:16 UTC
The function should be covered with the macro. You can also use the code editors. On Linux/KDE the text editor is Kate, having a powerful highlighting features. Use "Copy as HTML" and paste the snippet into Writer. Or just copy/paste from Visual Studio.
Comment 6 `{third: "Beedell", first: "Roke"}`{.JSON5} 2024-04-17 12:34:57 UTC
(In reply to Heiko Tietze from comment #5)
Do you all agree consequently that we should resolve the linked issues as WONTFIX too?

1.  https://bugs.documentfoundation.org/show_bug.cgi?id=43089#c0
2.  https://bugs.documentfoundation.org/show_bug.cgi?id=97638#c0
3.  https://bugs.documentfoundation.org/show_bug.cgi?id=160360#c0

Without a shared codebase for syntax highlighting support between them, they seem like they would become disparate nightmares for any maintainer, and be unnecessarily difficult to implement.
Comment 7 Heiko Tietze 2024-04-18 07:01:16 UTC
(In reply to `{third: "Beedell", first: "Roke"}`{.JSON5} from comment #6)
> Do you all agree consequently...

> Bug 43089 - Syntax highlighting for Math
I don't see highlighting of a particular bracket as syntax. => WF
> Bug 97638 - Beanshell Editor: Add syntax highlighting
Sure, Beanshell is a macro language with a strong syntax, http://www.beanshell.org/manual/syntax.html
> Bug 160360 - Syntax Highlighting for Markdown
I don't fully understand this idea but if you expect a Writer text to be saved as or loaded from md my take here is also WF.