Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Code Blocks Formatting

Featured Replies

@jackyjask are you sure you are selecting code blocks with the most appropriate language?

Procedure SetImage(Icon)
  
  ExtractIconEx_("imageres.dll", Icon, 0, @iIcon, 1)
  
  If CreateImage(MyImage, 16, 16 ,32)
    StartDrawing(ImageOutput(MyImage))
    Box(0, 0, 16, 16, GetSysColor_(#COLOR_MENU))
    DrawingMode(#PB_2DDrawing_AllChannels)
    DrawImage(iIcon, 0, 0, 16, 16)
    StopDrawing()
  EndIf
  
  DestroyIcon_(iIcon)
  
  ProcedureReturn ImageID(MyImage)
EndProcedure

Ted.

  • Author

wow, thanks Ted!

I was blind :)

yeah also used

image.png

cryingggg

  • 2 weeks later...

@jackyjask I was meant to post this a few days ago, if you have not already noticed, IPS moved the "Code Block", to menu...

image.png

Ted.

@Teddy Rogers It seems the menu item disappeared again (or at least on Firefox)? At least I cannot see it under the + button anymore, even after a ctrl+f5.

image.png

@Washi thank you for reporting. Can you try now, as it should be fixed.

I had to upload some fresh files on to the server and it seems to have made the editor template revert back to a previous update...

Ted.

@Teddy Rogers  

#include <stdio.h>
int main() {
	puts("Seems to work fine now, thanks!");
	return 0;
}

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.