Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
asgs11515112dIt seemed to have generated something for Java code. Strangely, it started coloring right at the opening brace following the main method
-
K-ASS2588112d@asgs well because the parser is only for python, so maybe it didn’t even pick up that syntax tree
-
lorentz14940112d@K-ASS your orange peeler didn't peel my banana right.
Are you using a full python parser, or did you handroll the parts you need? -
K-ASS2588111d@lorentz I’m using tree sitter to generate the syntax tree then recurse over the tree. Most of the nodes don’t need special cares
-
thebiochemic3028111dthis loop looks hella packed. And i guess as longs as you never need to deal with this code it would be fine.
pretty cool regardless -
K-ASS2588111d@kiki I feel like this is sarcasm and I checked the code, I don’t think I mistyped a o to 0 though
-
Liebranca641111dTwo things:
0. Line comment outlining what each block is doing is top notch. All you're missing is adding a fucking newline before the comment so that I can discern the blocks at a glance.
1. I'd prefer writing function arguments after a newline too just to evade line wrapping, though that is more subjective.
But you're doing bpy stuff which is commendable. I salute you, fellow Blenderhead. -
K-ASS2588111d@Liebranca bruh the core functionality of the website is highlighting, there is no reformatting
-
Liebranca641111d@K-ASS Then I hereby challenge your ass to either apply it by hand or add it in ;>
-
K-ASS2588111d@Liebranca here, this code is completely generated by ChatGPT, you can challenge his ass
-
Liebranca641111d@K-ASS It incosistently applies the line comment rule and very much shits on the line wrapping rule; 4/10, a dumb human could do it better.
Because writing code in latex is ugly, had to make a website to auto generate styled code for me:
https://txstc55.github.io/code-to-l...
Here’s a preview of a piece of code, in pdf, not an image
rant