Highlighted code in slides

  Рет қаралды 12,828

fasterthanlime

fasterthanlime

Күн бұрын

Пікірлер: 96
@the-old-channel
@the-old-channel 3 күн бұрын
In VSCode: select text -> Ctrl + Shift + P -> "Copy with syntax highlighting". Saved me so many hours making presentations. You can also set your editor’s theme to whatever you like to see in your slides.
@MarquisKurt
@MarquisKurt Күн бұрын
Panic's Nova editor also got this functionality very recently with Nova 12!
@gamehatter6216
@gamehatter6216 4 күн бұрын
great as always, love the outro songs we're getting now
@gamehatter6216
@gamehatter6216 4 күн бұрын
amospup character arc is real
@fasterthanlime
@fasterthanlime 4 күн бұрын
bark bark
@Kabodanki
@Kabodanki 3 күн бұрын
How much for this dog behind the glass lol
@LDVSoft
@LDVSoft 4 күн бұрын
Oh that's a world of cursed. Let me share some of mine. Speaking of slides, how do CS students do slides and homework? Of course in TeX, with beamer for slides. You can include verbatim monosoace text in TeX, but how do you make it pretty? Well, there is a package for that. How does it work? It asks you to install Pygments and to allow TeX to perform arbitrary code execution on your machine. Yep, in text markup language there are macros that expand to command execution. Then it consumes the output into the document.
@_tobii
@_tobii 4 күн бұрын
I had some good luck with typst when I just wanted to display some snippets
@TechnologicNick
@TechnologicNick 3 күн бұрын
@@_tobii Typst also allows code to read arbitrary files on your computer though, see issue #5454 for example.
@math7968
@math7968 3 күн бұрын
@@_tobii me too
@meowsqueak
@meowsqueak 3 күн бұрын
FWIW, I like to use slidev for presentations - for programmers it’s much more flexible than Google tools or PowerPoint or LaTeX, and you can do some nice code animation too.
@fasterthanlime
@fasterthanlime 3 күн бұрын
sli.dev actually looks really interesting, thanks for sharing!
@gaeel330
@gaeel330 3 күн бұрын
My big takeaway from this presentation is the light-dark() css function. I've been using prefers-color-scheme media queries for years now...
@fasterthanlime
@fasterthanlime 3 күн бұрын
Be warned that light-dark() is "baseline 2024" - folks with older iPhones etc. won't benefit from it.
@gaeel330
@gaeel330 3 күн бұрын
@@fasterthanlime Ah! I'll stick with what I have for now then. That said, I wasn't looking to rewrite my stylesheets any time soon
@CattoFace
@CattoFace 3 күн бұрын
Reminded me to look into adding copy buttons to my site, thanks
@thepetesmith
@thepetesmith 3 күн бұрын
Every one of your videos has LOL moments man. Silly comedy like this is a lost art.
@somebody_on_the_internetz
@somebody_on_the_internetz Күн бұрын
Damn, how could I miss this release
@sodiboo
@sodiboo 3 күн бұрын
3:39 O.o hi!! that's me!!
@fasterthanlime
@fasterthanlime 3 күн бұрын
Hi hello! For the record your reply was funny, I just needed someone to illustrate copypasta 😌
@sodiboo
@sodiboo 3 күн бұрын
@@fasterthanlime wait fuck my reply has invalid Rust because that operator isn't real. oh no! immortalized in KZbin, everyone will see my syntactic blunder!
@JamesMunns
@JamesMunns 3 күн бұрын
Color-y colors are my favorite colors
@DriftJunkie
@DriftJunkie 3 күн бұрын
Hello Mister, I've heard you like Color with your Color, so I took the liberty, to color your Colors!
@fasterthanlime
@fasterthanlime 3 күн бұрын
STOP TAKING SCREENSHOTS OF YOUR CODE EDITOR JAMES
@JamesMunns
@JamesMunns 3 күн бұрын
​@@fasterthanlimehelp help I'm being oppressed
@yavko
@yavko 3 күн бұрын
You could use typst to make slides.
@brunizzl
@brunizzl 3 күн бұрын
i second this. for anyone who dislikes latex: typst is to latex, what rust is to c. - it has very markdowny syntax - no macros, but an actual good language under the hood (staticly typed!) - compiles in the blink of an eye - has sane error messages
@PizzaRollExpert
@PizzaRollExpert 2 күн бұрын
That's crazy man, I just do my code slides in latex
@dotellie
@dotellie 3 күн бұрын
Very interesting! I was actually working on a product to solve this sort of use-case but slightly differently. Then life came in the way and I never got to finishing it. This video might be what I needed to start working on it again though!
@fasterthanlime
@fasterthanlime 3 күн бұрын
I'm glad it could inspire you! Can you share the approach you were thinking of taking?
@dotellie
@dotellie 3 күн бұрын
@ In essence, it’s the “have a picture of the code in slides” approach, but souped up a bit. An application that would allow you to export code screenshots in whatever way you need, though primarily in png, svg and html format. So not the same, but reminiscent at least 😄
@cramhead
@cramhead 4 күн бұрын
Fun video. Thanks for sharing. I always learn a little something in them.
@fasterthanlime
@fasterthanlime 4 күн бұрын
Thanks, that’s the idea!
@MattGodbolt
@MattGodbolt 4 күн бұрын
Lol at the Countdown music 😂😊
@fasterthanlime
@fasterthanlime 4 күн бұрын
YT lets you pick themes but I didn't cause I was in a hurry!
@duvallj
@duvallj 3 күн бұрын
neat video! i learned something new about CSS today :)
@rodrigosantoszz
@rodrigosantoszz 3 күн бұрын
Hi, I love your channel, I’d just like to say that I wish you background wasn’t so dark because youtubes compression makes it look very bad
@fasterthanlime
@fasterthanlime 3 күн бұрын
That’s an interesting point I hadn’t considered before. I try to make my videos look like dark mode code editors because I assume my audience are night owls.. hopefully KZbin’s compression gets better over time? Or maybe it’s in my export? Not sure.
@PthariensFlame
@PthariensFlame 3 күн бұрын
@@fasterthanlimeAt least one member of your audience (this one) is a light-mode user and barely puts up with the color scheme in the videos because the material is interesting. 😅
@SimonBuchanNz
@SimonBuchanNz 3 күн бұрын
"i should be using lab() or whatever the other one is" - if you meant lch(), the polar version of the Cartesian lab(), both are based on CIELAB 1976; nowadays you should be considering oklab()/oklch() instead, the perceptual linearity of colors is far better - notably a rainbow finally doesn't look "bumpy"! It only took two or three times my lifetime....
@zhaofengli8757
@zhaofengli8757 4 күн бұрын
Nice video! Just one question: Instead of massaging user-facing elements into Google Slides-facing clean HTML, why not have your blog engine emit it directly? You do lose the WYSIWYG benefits from relying on the browser's CSS engine to get the computed values, but in return you get reproducibility as well as the ability to directly tailor the final output for Google Slides. Bonus points for making a Slides extension that is backed by your own highlighting engine :P
@fasterthanlime
@fasterthanlime 4 күн бұрын
This is honestly the cleaner solution, and something I will likely move to, especially as I want to import highlighted code into DaVinci’s fusion tab, for example, or paste a color flipped version of my SVG diagrams into Keynote
@giorgos-4515
@giorgos-4515 15 сағат бұрын
Google doesnt even make new features anymore, adding SVG support should have been way easier in Slides.
@skeleton_craftGaming
@skeleton_craftGaming 3 күн бұрын
the answer to your problem is latex, it's always latex.. latex even has a native ish Apple implementation
@fasterthanlime
@fasterthanlime 3 күн бұрын
Not to kinkshame but I’m simply not into LaTeX. Thankfully there are other decent typesetting solutions now - much has changed since 1979!
@aayushpaurana5967
@aayushpaurana5967 2 күн бұрын
AMOS IS BACK
@kdcadet
@kdcadet 4 күн бұрын
beamer
@hermannpaschulke1583
@hermannpaschulke1583 4 күн бұрын
or typst touying
@fasterthanlime
@fasterthanlime 4 күн бұрын
I never do latex outside the bedroom
@shrirambalaji
@shrirambalaji 3 күн бұрын
figma slides is nice, you might actually like it - has the features of keynote I want and you can do vector graphics (obviously)
@fasterthanlime
@fasterthanlime 3 күн бұрын
Ohh, I had never even thought of Figma for that. I found myself wishing Figma had more video timeline things, so I could use it more easily for motion design. I did once for the “third coffee and I’m explaining the Internet” video, but it was a lot of manual work still, setting transition times etc.
@maxmustermann5590
@maxmustermann5590 3 күн бұрын
HES BACK
@fasterthanlime
@fasterthanlime 3 күн бұрын
With new pronouns! I go by they/them now. But thanks! Happy to be back!
@ocean3323
@ocean3323 3 күн бұрын
You can see computed styles in firefox
@fasterthanlime
@fasterthanlime 3 күн бұрын
Yes, but it doesn't support computedStyleMap: caniuse.com/?search=computedstylemap It does support window.getComputedStyle, as someone else pointed out, but that does something different.
@SimonBuchanNz
@SimonBuchanNz 3 күн бұрын
I was implementing copy paste handling for formatted text just a few weeks ago. Are you following me around, lime?
@outasi_official
@outasi_official 3 күн бұрын
the world of HDR is such a mess that i think the world should just abandon it at this point, but otherwise very cool video and concept. keeping code colors and formatting sounds real cool. i honestly wonder why we copy any and all text background by default
@fasterthanlime
@fasterthanlime 3 күн бұрын
Nooo I like HDR so much! My nice OLED tv makes me very happy and well, mostly I watch HDR10 content on there, although it’s Dolby Digital capable. I want to do more videos on color, but it would have to be in SDR to make sure everyone sees the same thing (ish)
@outasi_official
@outasi_official 3 күн бұрын
@@fasterthanlime i guess i just watch too much youtube, that's where 80% of the content i see comes from
@berndeckenfels
@berndeckenfels 3 күн бұрын
Cant you use reveal.js with highlite.js and use the css styles you want?
@LV-ii7bi
@LV-ii7bi Күн бұрын
I still dont get it. did you solve the problem or not? 🤷‍♂
@SianaGearz
@SianaGearz 3 күн бұрын
"google slides please get your stuff together" google slides joins the graveyard.
@fasterthanlime
@fasterthanlime 3 күн бұрын
I don't think it will - it's part of Google's hedging strategy against the office suite. They need people's documents, so they need a drive, an office suite, etc.
@MarcCastellsBallesta
@MarcCastellsBallesta 3 күн бұрын
I also made the mistake of dragging png files to a slide despite knowing it's not supported.
@gassandrid
@gassandrid 3 күн бұрын
If only slides were as simple as markdown….. ’’’rust println!(“isn’t this nice!”); ’’’
@thecriticizedgamer8508
@thecriticizedgamer8508 3 күн бұрын
Are you really not going to show the result?
@fasterthanlime
@fasterthanlime 3 күн бұрын
I did briefly at the end! And the description also has a link to my P99 conf talk recording.
@johnlewis794
@johnlewis794 3 күн бұрын
your blog post is crashing my floorp tab :(
@fasterthanlime
@fasterthanlime 3 күн бұрын
Fascinating. I’ve heard of Mobile Safari crashing occasionally but.. Firefox?? Is it easy to reproduce? Can you troubleshoot a little?
@CobaltSpace
@CobaltSpace 3 күн бұрын
Why not use something like reveal js?
@seinou7471
@seinou7471 3 күн бұрын
or slidev, or this, or that, etc.
@fasterthanlime
@fasterthanlime 3 күн бұрын
I think it becomes awkward to export to PDF? (which we do for episodes of self-directed research, see sdr-podcast.com/episodes/) But also.. I do use visual elements in my slides, I like the WYSIWYG aspect of it, I just want to be able to import pre-existing diagrams (made in draw.io, Affinity Designer, Figma etc.) and pre-existing code blocks, that's it.
@PragMero
@PragMero 3 күн бұрын
Mac user??? eew
@fasterthanlime
@fasterthanlime 3 күн бұрын
For the longest time I switched regularly between Windows (on a desktop tower) and Mac (since they have the best laptops) and only recently made the move to “all Macs”. It’s been good honestly! Took a bit of learning but for the most part it really gets out of the way (for a price..)
@pst659
@pst659 4 күн бұрын
ur mic/voice is terrible. can't hear some of the things you say. bye
@fasterthanlime
@fasterthanlime 4 күн бұрын
Out of curiosity, what are you listening on? Also, did KZbin enable auto generated subtitles for you?
@kyle_rosenberg
@kyle_rosenberg 4 күн бұрын
@@fasterthanlime Audio seems fine watching on my computer.
@bazookavrn
@bazookavrn 4 күн бұрын
no, it sounds great, thanks for the content!
@schtormm
@schtormm 4 күн бұрын
It's fine for me on my (admittedly probably pretty shitty) audio interface attached to my PC coupled with decent headphones lol
@jrmoulton
@jrmoulton 4 күн бұрын
audio is good
POV: I'm on my third coffee and you just asked me how the internet works
21:20
GitHub Actions Feels Bad
26:27
fasterthanlime
Рет қаралды 97 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 8 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН
What is the i really doing in Schrödinger's equation?
25:06
Welch Labs
Рет қаралды 157 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 404 М.
Static Compilation of Julia with Jeff Bezanson
1:01:41
Julia Dispatch
Рет қаралды 1,6 М.
Is C BETTER than C++ for beginners? // Code Review
31:16
The Cherno
Рет қаралды 55 М.
I Went Too Fast
16:24
SuperfastMatt
Рет қаралды 456 М.
An open source app we can all learn from
29:09
Theo - t3․gg
Рет қаралды 92 М.
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 4 МЛН
This Should Be Impossible...
23:05
Alec Steele
Рет қаралды 867 М.
Programming Is Cooked
9:30
ThePrimeTime
Рет қаралды 271 М.
Top G Andrew Tate penetrated by LGBT hackers
4:11
Fireship
Рет қаралды 1 МЛН