hi aaay,
the language used for teensy is c/c++ (c++ originated from c). So u can decide, which language you want to programm with, but if mixing them, be careful not to write bad confusing code.
There are lots of tutorials, where u can learn c/c++ e.g. at the website
www.tutorialspoint.com,
www.learncpp.com and so on.
(resembling assembly language PORTD |= (1<<6) ) or the modern Arduino C(++).
Well, what you just wrote is "far" (<- well not that far, but far enough

) away from assambly language.
The code you just shared is common C and is code for manipulating a single bit in a variable (here: bit 6 (for programmers bit 5) in var "PORTD" [PORTD is a hardwareport/register] is set to 1).
In my opinion, the "arduino c(++)" is anything but modern...its more a step of backwards than progress. The reason: if you are learing Arduino and choose the wrong tutorials, you will be lead to a wrong picture of programming microcontrollers and programming in c/c++.
For the common user, to set a Hardware pin high to e.g. drive an LED, you can write "digitalWrite(13, HIGH);" and everything seems to be nice...BUT for a man, knowing about microcontrollers, assambly language and c, the function "digitalWrite();" is totally ***** (<- many bad words, sry) --> the reason: if you use C lanuguage correct, you could create a frequency on a Hardware pin with an Arduino Uno (driven with 16MHz) with 2 MHz...you will NEVER reach such speed with the "digitalWrite();" function, cause its written in a bad style. For this reason (very much thanks to him!!) PaulStoffregen, the creator of teensy, programmed the better written function "digitalWriteFast();" which will be able to create a much faster frequency.
So why i am writing this all...
Arudino/teensy is a very great and low cost possibilty to learn about microcontrollers, using some LED, then using a keyboard, and more and more by time and then doing great stuff with it.
BUT I would love to recommend it to you, and anyone else who will read this thread, first read a tutorial on C to get a much better understanding of Arduino. It should be a tutorial about c for microcontrollers and not e.g. c for windows!!
C is not so much to read and processed relatively quickly to get a rough overview, it will not hurt!

(it's kind of "you cannot fight, what you don't see" ;-) )