Project

General

Profile

Actions

tickets #127376

open

susepaste command no longer respects syntax and does not show in Recents when logged in

Added by drankinatty@suddenlinkmail.com 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2023-04-07
Due date:
% Done:

0%

Estimated time:

Description

All, admin@o.o,

Woes continue with the updated paste.opensuse.org. Many many times I simply
use the susepaste command line to post C files to share. Before the new
updates to the site, there was never a problem with syntax highlight not
working and the "Reply" option was always provided and the paste appeared in
"Recent Pastes"

Just a few minutes ago I posted:

https://paste.opensuse.org/pastes/63b21f6108e with the link in a comment on
StackOverflow.

The command to post was:

susepaste -n "David C Rankin" -t "Pico MPU6050" -e 40320 -f c < mpu6050.c

The link takes you to the paste, but I see:

  • No Syntax Highlight
  • No Ability for a visitor to "Reply" to the paste

and

  • The pasted does not appear as one of "My Pastes" when logged in and it is not shown in the "Recents" list - viewing the entire page.

The only thing shown in "My Pastes" is an earlier image paste
https://paste.opensuse.org/pastes/7c80e743d044 related to an earlier question
on this list about KDE Ark and lzma support.

Why doesn't the MPU6050 paste show with C syntax highlight after being
specified with -f c, and why is there no ability for visitors to "reply" to
the paste anymore.

Also, why doesn't it shown in the Recents list?

As additional tests I added the -k option with the open-connect key I have
in my paste.o.o account. I posted:

https://paste.opensuse.org/15d9f5def036

susepaste -n "David C Rankin" -k heoix... -t "Robert Jenkins' 96 bit
Mix Function" -e 40320 -f c < mix-seed-ctg-compare.c | tee -a "$HOME/suse/pastes"

(has syntax highlight - yay, maybe it was -k required?)

And I posted:

https://paste.opensuse.org/1930e130a358

susepaste -n "David C Rankin" -k heoix... -t "96 Bit Mix Function
w/Compile String" -e 40320 -f c < mix-seed-ctg-compare.c | tee -a
"$HOME/suse/pastes"

(NO syntax highlight - WTF? It's the same source with an additional c-comment)

Neither are shown in "My Pastes" and neither have the ability for users to
"Reply"?

--
David C. Rankin, J.D.,P.E.


Files

Actions #1

Updated by pjessen 11 months ago

  • Assignee set to hellcp
  • Private changed from Yes to No
Actions #2

Updated by hellcp 11 months ago

In the new paste, the pastes are private when posted from CLI, and so you only end up seeing the pastes that are associated with your api key, since you have the permissions to see them with your account. I was going to map the old language syntax options to the new format, as we use mimetype now to associate file types with syntax highlighter, but that's a bit of an involved task, so I didn't do that yet. If you feel so inclined, you can help out with that. I'm not sure what the use of reply on a paste is for, sounds like an interesting feature that we may consider, please expand on it a little bit so that we know what it did exactly and how it was used in the past.

Actions #3

Updated by pjessen 11 months ago

hellcp wrote:

In the new paste, the pastes are private when posted from CLI, and so you only end up seeing the pastes that are associated with your api key,

I just tried pasting something with a newly created key - didn't work.

Pasting as "private" by default is the sane thing to do, but it would be nice with an option for "public", and/or a way to toggle it in the webui.

Actions #4

Updated by drankinatty@suddenlinkmail.com 11 months ago

Also, while we are looking at opensuse.paste, can we tone down the "Six Year
Old Girl Fantasy Pastel Birthday Cake" theme for C/C++? It is quite surprising
to look at, e.g.:

https://paste.opensuse.org/130a507e85a5

If you see the same thing I do, it looks like an explosion of pastel birthday
cake sprinkle colors were assigned to the keywords, operators, types, etc..
for C/C++.

I mean -- that's kind of hard to look at.

I know it wasn't intentional that it render that way and is probably some
default theme, or a theme that looks good for php, etc.. The desaturated reds
and oranges next to each other must violate just about every html
complementary color recommendation I've ever run across. Yikes...

--
David C. Rankin, J.D.,P.E.

Actions #5

Updated by pjessen 11 months ago

Hi David,

Is it that different to the default syntax highlighting in vim ? see attached.

To be honest, I wouldn't get my hopes up - I'm not looking after paste.o.o, but if I were, I would not be out soliciting opinions on the syntax highlighting and then implementing the high scorer.

There are a couple of issues -

a) whose opinion is the right one?
b) who is going to do it?
c) for the benefit of who / how many.

I guess someone could implement some way of using a personal, per-browser highlighting scheme.

Actions #6

Updated by hellcp 11 months ago

drankinatty@suddenlinkmail.com wrote:

I know it wasn't intentional that it render that way and is probably some
default theme, or a theme that looks good for php, etc.. The desaturated reds
and oranges next to each other must violate just about every html
complementary color recommendation I've ever run across. Yikes...

We are using the default codemirror theme, and are only switching the theme for dark mode version of the page (it's https://github.com/codemirror/theme-one-dark). Feel free to create your own theme and submit a PR to the paste-o-o codebase to switch to it.

Actions #7

Updated by drankinatty@suddenlinkmail.com 11 months ago

On 4/19/23 01:08, redmine@opensuse.org wrote:

[openSUSE Tracker]
Issue #127376 has been updated by pjessen.

File Screenshot_20230419_074927.jpeg added

Hi David,

Is it_that_ different to the default syntax highlighting in vim ? see attached.

To be honest, I wouldn't get my hopes up - I'm not looking after paste.o.o, but if I were, I would not be out soliciting opinions on the syntax highlighting and then implementing the high scorer.

There are a couple of issues -

a) whose opinion is the right one?
b) who is going to do it?
c) for the benefit of who / how many.

I guess someone could implement some way of using a personal, per-browser highlighting scheme.

WHOA -- yes that is WAY different from what I see:

https://paste.opensuse.org/pastes/7f10b61a139c

(png image on susepaste - good for 30 days)

--
David C. Rankin, J.D.,P.E.

Actions #8

Updated by drankinatty@suddenlinkmail.com 11 months ago

I guess someone could implement some way of using a personal, per-browser highlighting scheme.

WHOA -- yes that is WAY different from what I see:
https://paste.opensuse.org/pastes/7f10b61a139c

I guess you're using a different scheme - I'm just using the default, on Leap and TW both.
Try ':colo' to see which scheme is in use.

Uugh Per,
Give me the dunce award. I'm not talking about how it looks in vim, I'm
talking about the syntax highlight scheme shown by susepaste, e.g.

Yep, I know - I only mentioned the vim scheme for comparison.

Actions

Also available in: Atom PDF