Forum Discussion
mray
2 years agoLM Conqueror
Markdown is the de facto standard and super convenient. This method of clicking the code option in the overflow menu isn’t too bad honestly -- could be worse. My biggest gripe is it just looks bad…
Here’s some Python code and now my eyes hurt
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint
# API authorization
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'portalname'
configuration.auth_type = 'Bearer'
configuration.bearer_token = 'lmb_xxx'
# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(
logicmonitor_sdk.ApiClient(configuration))
body = logicmonitor_sdk.models.Device(
name="1.1.1.1",
display_name="dummy",
preferred_collector_id=42
)
try:
# add device
api_response = api_instance.add_device(body)
print("Response:")
pprint(api_response)
except ApiException as e:
print("Exception when calling LMApi->addDevice: %s\n" % e)
Atlassian Community’s code block also doesn’t look that great tbh but it is easier on the eyes I guess:
Can we have blocks in numbered lists here?
- Some text plus that same confluence code in the screenshot
spaces = confluence.get_all_spaces(start=0, limit=500, expand=None)
slist = spaces['results']
for s in slist:
print(s['key'], s['name'], s['type']) - Ahh neat!
print("but my vote is still for full markdown support")
Related Content
- 2 months ago
- 2 years ago
- 2 years agoAnonymous