Code

  • Slideas uses Highlight.js to render syntax highlighting.
  • You can define which language you want to use.
  • Code supports Fit in Slide

Inline code

Code blocks


# Code example

    -(void)mouseDown:(NSEvent *)theEvent {
        [super mouseDown:theEvent];
        // check for click count above one, which we assume means it's a double click event
        if([theEvent clickCount] > 1) { 
        //NSLog(@"double click!");

        if(delegate &&  [delegate  respondsTySelector:@selector(doubleClick:)]) { 
                [delegate performSelector:@selector(doubleClick:) withObject:self]; 
            } 
        }
    }
        
    -(void)mouseDown:(NSEvent *)theEvent {
        [super mouseDown:theEvent];